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

Unified Diff: cc/quads/render_pass_draw_quad.h

Issue 317663005: Scale the ALPHA_THRESHOLD filter's region based on the device scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use SkMatrix when creating AlphaFilter Created 6 years, 5 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 1f6217ddc8c65bc1a505573b849cd568a92800d3..3588df1ca35691576e7a6033dc0723307a9524af 100644
--- a/cc/quads/render_pass_draw_quad.h
+++ b/cc/quads/render_pass_draw_quad.h
@@ -29,7 +29,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::Vector2dF& scale);
void SetAll(const SharedQuadState* shared_quad_state,
const gfx::Rect& rect,
@@ -42,7 +43,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::Vector2dF& scale);
scoped_ptr<RenderPassDrawQuad> Copy(
const SharedQuadState* copied_shared_quad_state,
@@ -61,6 +63,11 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
// background of the render pass, from behind it.
FilterOperations background_filters;
+ // Layer scale. This scale has already been applied to the pixels. It is
danakj 2014/07/11 16:08:22 "The scale from layer space of root layer of the r
garykac 2014/07/25 18:18:59 Done.
+ // recorded here so that the filters can (if needed) translate from device
+ // independent pixels to texture pixels.
+ gfx::Vector2dF scale;
+
virtual void IterateResources(const ResourceIteratorCallback& callback)
OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698