| 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 CC_RENDER_SURFACE_FILTERS_H_ | 6 #ifndef CC_RENDER_SURFACE_FILTERS_H_ |
| 7 #define CC_RENDER_SURFACE_FILTERS_H_ | 7 #define CC_RENDER_SURFACE_FILTERS_H_ |
| 8 | 8 |
| 9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 | 10 |
| 11 class GrContext; | 11 class GrContext; |
| 12 class SkBitmap; | 12 class SkBitmap; |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class SizeF; | 15 class SizeF; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace WebKit { | 18 namespace WebKit { |
| 19 class WebFilterOperations; | 19 class WebFilterOperations; |
| 20 class WebGraphicsContext3D; | |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace cc { | 22 namespace cc { |
| 24 | 23 |
| 25 class CC_EXPORT RenderSurfaceFilters { | 24 class CC_EXPORT RenderSurfaceFilters { |
| 26 public: | 25 public: |
| 27 static SkBitmap apply(const WebKit::WebFilterOperations& filters, unsigned t
extureId, const gfx::SizeF&, WebKit::WebGraphicsContext3D*, GrContext*); | 26 static SkBitmap apply(const WebKit::WebFilterOperations& filters, unsigned t
extureId, gfx::SizeF, GrContext*); |
| 28 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); | 27 static WebKit::WebFilterOperations optimize(const WebKit::WebFilterOperation
s& filters); |
| 29 | 28 |
| 30 private: | 29 private: |
| 31 RenderSurfaceFilters(); | 30 RenderSurfaceFilters(); |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 } | 33 } |
| 35 #endif // CC_RENDER_SURFACE_FILTERS_H_ | 34 #endif // CC_RENDER_SURFACE_FILTERS_H_ |
| OLD | NEW |