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

Unified Diff: cc/output/gl_renderer.h

Issue 2543473004: cc: Move filters from RenderPassDrawQuad to RenderPass (Closed)
Patch Set: Created 4 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
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 8aa00d2f9ee658cba1d1475e39244571e938f2ff..d65f91f14b12033fe7f9bd1d8682dfce17d5016d 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -163,6 +163,8 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
DrawingFrame* frame,
const RenderPassDrawQuad* quad,
const gfx::Transform& contents_device_transform,
+ const FilterOperations* filters,
+ const FilterOperations* background_filters,
const gfx::QuadF* clip_region,
bool use_aa,
gfx::Rect* unclipped_rect);
@@ -170,11 +172,15 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
DrawingFrame* frame,
const gfx::Rect& bounding_rect);
- static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad);
- sk_sp<SkImage> ApplyBackgroundFilters(const RenderPassDrawQuad* quad,
- ScopedResource* background_texture,
- const gfx::RectF& rect,
- const gfx::RectF& unclipped_rect);
+ static bool ShouldApplyBackgroundFilters(
+ const RenderPassDrawQuad* quad,
+ const FilterOperations* background_filters);
+ sk_sp<SkImage> ApplyBackgroundFilters(
+ const RenderPassDrawQuad* quad,
+ const FilterOperations* background_filters,
+ ScopedResource* background_texture,
+ const gfx::RectF& rect,
+ const gfx::RectF& unclipped_rect);
const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override;

Powered by Google App Engine
This is Rietveld 408576698