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

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: Remove call to SetAlphaShape from this cl Created 6 years, 6 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..8877753054983b0087b089fcebabf7b7cd9374bf 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -451,7 +451,10 @@ 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 device independent units, so it must be scaled by the
Wez 2014/06/17 01:57:48 nit: device independent units -> DIPs?
garykac 2014/07/10 23:02:24 Done.
+ // layer's |device_scale_factor|.
scoped_ptr<SkRegion> alpha_shape_;
std::string name_;

Powered by Google App Engine
This is Rietveld 408576698