| 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_OUTPUT_RENDER_SURFACE_FILTERS_H_ | 6 #ifndef CC_OUTPUT_RENDER_SURFACE_FILTERS_H_ |
| 7 #define CC_OUTPUT_RENDER_SURFACE_FILTERS_H_ | 7 #define CC_OUTPUT_RENDER_SURFACE_FILTERS_H_ |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 | 11 |
| 12 class GrContext; | 12 class GrContext; |
| 13 class SkBitmap; | 13 class SkBitmap; |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class SizeF; | 16 class SizeF; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace WebKit { | |
| 20 class WebFilterOperations; | |
| 21 } | |
| 22 | |
| 23 namespace cc { | 19 namespace cc { |
| 24 | 20 |
| 21 class FilterOperations; |
| 22 |
| 25 class CC_EXPORT RenderSurfaceFilters { | 23 class CC_EXPORT RenderSurfaceFilters { |
| 26 public: | 24 public: |
| 27 static SkBitmap Apply(const WebKit::WebFilterOperations& filters, | 25 static SkBitmap Apply(const FilterOperations& filters, |
| 28 unsigned texture_id, | 26 unsigned texture_id, |
| 29 gfx::SizeF size, | 27 gfx::SizeF size, |
| 30 GrContext* gr_context); | 28 GrContext* gr_context); |
| 31 static WebKit::WebFilterOperations Optimize( | 29 static FilterOperations Optimize(const FilterOperations& filters); |
| 32 const WebKit::WebFilterOperations& filters); | |
| 33 | 30 |
| 34 private: | 31 private: |
| 35 DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters); | 32 DISALLOW_IMPLICIT_CONSTRUCTORS(RenderSurfaceFilters); |
| 36 }; | 33 }; |
| 37 | 34 |
| 38 } // namespace cc | 35 } // namespace cc |
| 39 | 36 |
| 40 #endif // CC_OUTPUT_RENDER_SURFACE_FILTERS_H_ | 37 #endif // CC_OUTPUT_RENDER_SURFACE_FILTERS_H_ |
| OLD | NEW |