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

Unified Diff: ui/compositor/layer.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: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 03041edb872c1f4f66cec65a457f3ebf5aecd4ba..045159e36fe4c23e2a07c08146d6bf407f68f1b6 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -451,7 +451,9 @@ class COMPOSITOR_EXPORT Layer
// Width of the border in pixels, where the scaling is blended.
int zoom_inset_;
- // Shape of the window.
+ // The alpha shape is a region that defines the area that is visible
+ // (and matches the area that accepts input events). The region is specified
+ // in DIPs, so it must be scaled by the layer's |device_scale_factor|.
danakj 2014/07/11 16:08:22 this comment seems out of date now
scoped_ptr<SkRegion> alpha_shape_;
std::string name_;
« cc/quads/render_pass_draw_quad.h ('K') | « cc/trees/layer_tree_host_unittest_delegated.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698