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

Unified Diff: cc/output/software_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/renderer_pixeltest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/software_renderer.h
diff --git a/cc/output/software_renderer.h b/cc/output/software_renderer.h
index ef919a2fcbf1dc2ce6f4fc102b18ac29e10ab7ae..912842a6b851c056a220e6ecc48fb4db591f6632 100644
--- a/cc/output/software_renderer.h
+++ b/cc/output/software_renderer.h
@@ -77,7 +77,9 @@ class CC_EXPORT SoftwareRenderer : public DirectRenderer {
const TileDrawQuad* quad);
void DrawUnsupportedQuad(const DrawingFrame* frame,
const DrawQuad* quad);
- bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad) const;
+ bool ShouldApplyBackgroundFilters(
+ const RenderPassDrawQuad* quad,
+ const FilterOperations* background_filters) const;
sk_sp<SkImage> ApplyImageFilter(SkImageFilter* filter,
const RenderPassDrawQuad* quad,
const SkBitmap& to_filter,
@@ -86,6 +88,7 @@ class CC_EXPORT SoftwareRenderer : public DirectRenderer {
const DrawingFrame* frame,
const RenderPassDrawQuad* quad,
const gfx::Transform& contents_device_transform,
+ const FilterOperations* background_filters,
gfx::Rect* unclipped_rect) const;
SkBitmap GetBackdropBitmap(const gfx::Rect& bounding_rect) const;
sk_sp<SkShader> GetBackgroundFilterShader(
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698