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

Unified Diff: cc/layers/nine_patch_layer.cc

Issue 1983803003: Revert of cc: nine patch: add occlusion support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « cc/layers/nine_patch_layer.h ('k') | cc/layers/nine_patch_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/nine_patch_layer.cc
diff --git a/cc/layers/nine_patch_layer.cc b/cc/layers/nine_patch_layer.cc
index 84aaee542c47e7ce86d05ec9a73ca7eaa723d704..b68891cf51e3d44e1dcfcdda97003bbf90030163 100644
--- a/cc/layers/nine_patch_layer.cc
+++ b/cc/layers/nine_patch_layer.cc
@@ -57,14 +57,6 @@
SetNeedsCommit();
}
-void NinePatchLayer::SetLayerOcclusion(const gfx::Rect& occlusion) {
- if (layer_occlusion_ == occlusion)
- return;
-
- layer_occlusion_ = occlusion;
- SetNeedsCommit();
-}
-
void NinePatchLayer::PushPropertiesTo(LayerImpl* layer) {
UIResourceLayer::PushPropertiesTo(layer);
TRACE_EVENT0("cc", "NinePatchLayer::PushPropertiesTo");
@@ -75,8 +67,8 @@
} else {
DCHECK(layer_tree_host());
- layer_impl->SetLayout(image_aperture_, border_, layer_occlusion_,
- fill_center_, nearest_neighbor_);
+ layer_impl->SetLayout(image_aperture_, border_, fill_center_,
+ nearest_neighbor_);
}
}
« no previous file with comments | « cc/layers/nine_patch_layer.h ('k') | cc/layers/nine_patch_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698