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 WebKit { | 14 namespace WebKit { |
13 class WebFilterOperations; | 15 class WebFilterOperations; |
14 class WebGraphicsContext3D; | 16 class WebGraphicsContext3D; |
15 } | 17 } |
16 | 18 |
17 namespace cc { | 19 namespace cc { |
18 class FloatSize; | 20 class FloatSize; |
19 | 21 |
20 class RenderSurfaceFilters { | 22 class CC_EXPORT RenderSurfaceFilters { |
21 public: | 23 public: |
22 static SkBitmap apply(const WebKit::WebFilterOperations& filters, unsigned t
extureId, const FloatSize&, WebKit::WebGraphicsContext3D*, GrContext*); | 24 static SkBitmap apply(const WebKit::WebFilterOperations& filters, unsigned t
extureId, const FloatSize&, WebKit::WebGraphicsContext3D*, GrContext*); |
23 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); | 25 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); |
24 | 26 |
25 private: | 27 private: |
26 RenderSurfaceFilters(); | 28 RenderSurfaceFilters(); |
27 }; | 29 }; |
28 | 30 |
29 } | 31 } |
30 #endif | 32 #endif |
OLD | NEW |