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

Unified Diff: ui/compositor/layer.cc

Issue 1937493002: cc: 9patch: fix shadow scaling issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split test helpers Created 4 years, 7 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/wm/core/shadow.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 8c8a29195c529640c22758434febfdc5e3b7ba7f..1d0556aad42df190acb41091f4af1632c1dff93a 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -626,6 +626,11 @@ void Layer::UpdateNinePatchLayerAperture(const gfx::Rect& aperture_in_dip) {
nine_patch_layer_->SetAperture(aperture_in_pixel);
}
+void Layer::UpdateNinePatchLayerBorder(const gfx::Rect& border) {
+ DCHECK(type_ == LAYER_NINE_PATCH && nine_patch_layer_.get());
oshima 2016/05/13 17:32:50 DCHECK_EQ
llandwerlin-old 2016/05/16 10:05:09 Done.
+ nine_patch_layer_->SetBorder(border);
+}
+
void Layer::UpdateNinePatchOcclusion(const gfx::Rect& occlusion) {
DCHECK(type_ == LAYER_NINE_PATCH && nine_patch_layer_.get());
nine_patch_layer_->SetLayerOcclusion(occlusion);
« no previous file with comments | « ui/compositor/layer.h ('k') | ui/wm/core/shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698