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