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 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
11 class GrContext; | 11 class GrContext; |
12 class SkBitmap; | 12 class SkBitmap; |
13 | 13 |
14 namespace WebKit { | 14 namespace WebKit { |
15 class WebFilterOperations; | 15 class WebFilterOperations; |
16 class WebGraphicsContext3D; | 16 class WebGraphicsContext3D; |
17 } | 17 } |
18 | 18 |
19 namespace WebCore { | 19 namespace cc { |
20 class FloatSize; | 20 class FloatSize; |
21 | 21 |
22 class CCRenderSurfaceFilters { | 22 class CCRenderSurfaceFilters { |
23 public: | 23 public: |
24 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*); |
25 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); | 25 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); |
26 | 26 |
27 private: | 27 private: |
28 CCRenderSurfaceFilters(); | 28 CCRenderSurfaceFilters(); |
29 }; | 29 }; |
30 | 30 |
31 } | 31 } |
32 #endif // USE(ACCELERATED_COMPOSITING) | 32 #endif // USE(ACCELERATED_COMPOSITING) |
33 | 33 |
34 #endif | 34 #endif |
OLD | NEW |