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