WebKit Roll 139512:139548
[chromium-blink-merge.git] / cc / render_surface_filters.h
blob0186613b60b4d96676739d75d0bda4088a89e14c
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #ifndef CC_RENDER_SURFACE_FILTERS_H_
7 #define CC_RENDER_SURFACE_FILTERS_H_
9 #include "cc/cc_export.h"
11 class GrContext;
12 class SkBitmap;
14 namespace gfx {
15 class SizeF;
18 namespace WebKit {
19 class WebFilterOperations;
20 class WebGraphicsContext3D;
23 namespace cc {
25 class CC_EXPORT RenderSurfaceFilters {
26 public:
27 static SkBitmap apply(const WebKit::WebFilterOperations& filters, unsigned textureId, const gfx::SizeF&, WebKit::WebGraphicsContext3D*, GrContext*);
28 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperations& filters);
30 private:
31 RenderSurfaceFilters();
35 #endif // CC_RENDER_SURFACE_FILTERS_H_