Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4571)

Unified Diff: cc/render_pass_draw_quad.h

Issue 11618026: Move filters to RenderPassDrawQuad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/render_pass.cc ('k') | cc/render_pass_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_pass_draw_quad.h
diff --git a/cc/render_pass_draw_quad.h b/cc/render_pass_draw_quad.h
index 629eab931ebaf0fcef7b673713f5a47aed0ea16b..27187c578235b9cb2d88b22803ced54e449eb147 100644
--- a/cc/render_pass_draw_quad.h
+++ b/cc/render_pass_draw_quad.h
@@ -11,12 +11,14 @@
#include "cc/draw_quad.h"
#include "cc/render_pass.h"
#include "cc/resource_provider.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations.h"
namespace cc {
class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
public:
static scoped_ptr<RenderPassDrawQuad> Create();
+ virtual ~RenderPassDrawQuad();
void SetNew(const SharedQuadState* shared_quad_state,
gfx::Rect rect,
@@ -24,7 +26,10 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
bool is_replica,
ResourceProvider::ResourceId mask_resource_id,
gfx::Rect contents_changed_since_last_frame,
- gfx::RectF mask_uv_rect);
+ gfx::RectF mask_uv_rect,
+ const WebKit::WebFilterOperations& filters,
+ skia::RefPtr<SkImageFilter> filter,
+ const WebKit::WebFilterOperations& background_filters);
void SetAll(const SharedQuadState* shared_quad_state,
gfx::Rect rect,
@@ -35,7 +40,10 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
bool is_replica,
ResourceProvider::ResourceId mask_resource_id,
gfx::Rect contents_changed_since_last_frame,
- gfx::RectF mask_uv_rect);
+ gfx::RectF mask_uv_rect,
+ const WebKit::WebFilterOperations& filters,
+ skia::RefPtr<SkImageFilter> filter,
+ const WebKit::WebFilterOperations& background_filters);
scoped_ptr<RenderPassDrawQuad> Copy(
const SharedQuadState* copied_shared_quad_state,
@@ -47,7 +55,18 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
gfx::Rect contents_changed_since_last_frame;
gfx::RectF mask_uv_rect;
+ // Deprecated post-processing filters, applied to the pixels in the render
+ // pass' texture.
+ WebKit::WebFilterOperations filters;
+ // Post-processing filter applied to the pixels in the render pass' texture.
+ skia::RefPtr<SkImageFilter> filter;
+
+ // Post-processing filters, applied to the pixels showing through the
+ // background of the render pass, from behind it.
+ WebKit::WebFilterOperations background_filters;
+
static const RenderPassDrawQuad* MaterialCast(const DrawQuad*);
+
private:
RenderPassDrawQuad();
};
« no previous file with comments | « cc/render_pass.cc ('k') | cc/render_pass_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698