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

Unified Diff: ui/compositor/layer.cc

Issue 581273002: Shadows: crop corner tiles instead of hiding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits from sky 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
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index bd08d7e20a6451cabeea6156a314e3c8a0d882a5..1aac1a1efc44b3e675fb5bece1851edea0026ce2 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -598,8 +598,7 @@ void Layer::SetShowPaintedContent() {
RecomputeDrawsContentAndUVRect();
}
-void Layer::UpdateNinePatchLayerBitmap(const SkBitmap& bitmap,
- const gfx::Rect& aperture) {
+void Layer::UpdateNinePatchLayerBitmap(const SkBitmap& bitmap) {
DCHECK(type_ == LAYER_NINE_PATCH && nine_patch_layer_.get());
SkBitmap bitmap_copy;
if (bitmap.isImmutable()) {
@@ -610,6 +609,10 @@ void Layer::UpdateNinePatchLayerBitmap(const SkBitmap& bitmap,
bitmap_copy.setImmutable();
}
nine_patch_layer_->SetBitmap(bitmap_copy);
+}
+
+void Layer::UpdateNinePatchLayerAperture(const gfx::Rect& aperture) {
+ DCHECK(type_ == LAYER_NINE_PATCH && nine_patch_layer_.get());
nine_patch_layer_->SetAperture(aperture);
}
« no previous file with comments | « ui/compositor/layer.h ('k') | ui/wm/core/DEPS » ('j') | ui/wm/core/shadow_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698