OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 #ifndef CCRenderSurfaceFilters_h | 6 #ifndef CCRenderSurfaceFilters_h |
7 #define CCRenderSurfaceFilters_h | 7 #define CCRenderSurfaceFilters_h |
8 | 8 |
| 9 #include "cc/cc_export.h" |
| 10 |
9 class GrContext; | 11 class GrContext; |
10 class SkBitmap; | 12 class SkBitmap; |
11 | 13 |
12 namespace gfx { | 14 namespace gfx { |
13 class SizeF; | 15 class SizeF; |
14 } | 16 } |
15 | 17 |
16 namespace WebKit { | 18 namespace WebKit { |
17 class WebFilterOperations; | 19 class WebFilterOperations; |
18 class WebGraphicsContext3D; | 20 class WebGraphicsContext3D; |
19 } | 21 } |
20 | 22 |
21 namespace cc { | 23 namespace cc { |
22 | 24 |
23 class RenderSurfaceFilters { | 25 class CC_EXPORT RenderSurfaceFilters { |
24 public: | 26 public: |
25 static SkBitmap apply(const WebKit::WebFilterOperations& filters, unsigned t
extureId, const gfx::SizeF&, WebKit::WebGraphicsContext3D*, GrContext*); | 27 static SkBitmap apply(const WebKit::WebFilterOperations& filters, unsigned t
extureId, const gfx::SizeF&, WebKit::WebGraphicsContext3D*, GrContext*); |
26 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); | 28 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); |
27 | 29 |
28 private: | 30 private: |
29 RenderSurfaceFilters(); | 31 RenderSurfaceFilters(); |
30 }; | 32 }; |
31 | 33 |
32 } | 34 } |
33 #endif | 35 #endif |
OLD | NEW |