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

Unified Diff: ui/compositor/layer.cc

Issue 547283003: [Ash] Copy alpha_shape when recreating layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « ui/compositor/layer.h ('k') | ui/compositor/layer_owner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index ff58bfb0b1696d69380ce609cb5560c30870af31..a957490d4f698e7826f33cab54e6111e851ed717 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -351,6 +351,10 @@ void Layer::SetBackgroundZoom(float zoom, int inset) {
SetLayerBackgroundFilters();
}
+SkRegion* Layer::alpha_shape() const {
+ return alpha_shape_.get();
danakj 2014/09/09 14:58:58 move this to the .h
jackhou1 2014/09/10 00:51:54 Done.
+}
+
void Layer::SetAlphaShape(scoped_ptr<SkRegion> region) {
alpha_shape_ = region.Pass();
« no previous file with comments | « ui/compositor/layer.h ('k') | ui/compositor/layer_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698