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

Unified Diff: cc/quads/render_pass_draw_quad.h

Issue 191123002: Implement hidpi and pinch-zoom scaling of filter params in cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
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 28b58dbf4d15cbe066222b552a0b3b966fed020a..b4b0121ffd024d32e59acf8a3652096cbc03f921 100644
--- a/cc/quads/render_pass_draw_quad.h
+++ b/cc/quads/render_pass_draw_quad.h
@@ -28,7 +28,8 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
const gfx::Rect& contents_changed_since_last_frame,
const gfx::RectF& mask_uv_rect,
const FilterOperations& filters,
- const FilterOperations& background_filters);
+ const FilterOperations& background_filters,
+ const gfx::Transform& scale);
void SetAll(const SharedQuadState* shared_quad_state,
const gfx::Rect& rect,
@@ -41,7 +42,8 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
const gfx::Rect& contents_changed_since_last_frame,
const gfx::RectF& mask_uv_rect,
const FilterOperations& filters,
- const FilterOperations& background_filters);
+ const FilterOperations& background_filters,
+ const gfx::Transform& scale);
scoped_ptr<RenderPassDrawQuad> Copy(
const SharedQuadState* copied_shared_quad_state,
@@ -59,6 +61,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
// Post-processing filters, applied to the pixels showing through the
// background of the render pass, from behind it.
FilterOperations background_filters;
+ gfx::Transform scale;
danakj 2014/03/07 17:35:44 Since you only care about the scale components, yo
Stephen White 2014/03/07 17:46:43 Yeah, that's probably a better idea.
danakj 2014/03/07 17:49:23 Oh actually, because this is a transform from the
danakj 2014/03/07 17:50:22 This is the full computation of the transform: htt
Stephen White 2014/03/07 20:45:58 Done.
Stephen White 2014/03/07 20:45:58 Done.
virtual void IterateResources(const ResourceIteratorCallback& callback)
OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698