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

Unified Diff: cc/quads/render_pass_draw_quad.h

Issue 394193003: Implement HiDPI and pinch-zoom scaling of filter params (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra headers; unneeded code in tests Created 6 years, 4 months 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/quads/draw_quad_unittest.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass_draw_quad.h
diff --git a/cc/quads/render_pass_draw_quad.h b/cc/quads/render_pass_draw_quad.h
index 7237a8548d549da89adeb1b911facfafefadeeaa..aaf7cf28890d6f8fbed8bd527445d335385bc34c 100644
--- a/cc/quads/render_pass_draw_quad.h
+++ b/cc/quads/render_pass_draw_quad.h
@@ -29,6 +29,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
const gfx::Rect& contents_changed_since_last_frame,
const gfx::RectF& mask_uv_rect,
const FilterOperations& filters,
+ const gfx::Vector2dF& filters_scale,
const FilterOperations& background_filters);
void SetAll(const SharedQuadState* shared_quad_state,
@@ -42,6 +43,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
const gfx::Rect& contents_changed_since_last_frame,
const gfx::RectF& mask_uv_rect,
const FilterOperations& filters,
+ const gfx::Vector2dF& filters_scale,
const FilterOperations& background_filters);
RenderPass::Id render_pass_id;
@@ -53,6 +55,12 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
// Post-processing filters, applied to the pixels in the render pass' texture.
FilterOperations filters;
+ // The scale from layer space of the root layer of the render pass to
+ // the render pass physical pixels. This scale is applied to the filter
+ // parameters for pixel-moving filters. This scale should include
+ // content-to-target-space scale, and device pixel ratio.
+ gfx::Vector2dF filters_scale;
+
// Post-processing filters, applied to the pixels showing through the
// background of the render pass, from behind it.
FilterOperations background_filters;
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698