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

Unified Diff: cc/output/gl_renderer.h

Issue 2543473004: cc: Move filters from RenderPassDrawQuad to RenderPass (Closed)
Patch Set: Rebase again 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
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 8aa00d2f9ee658cba1d1475e39244571e938f2ff..2af2c3091e04adaea2d2c0b298383a841be91659 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;
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698