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

Unified Diff: cc/layers/nine_patch_layer_impl_unittest.cc

Issue 1180073015: cc: Remove LayerImpl::SetContentBounds() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-setcontentbounds: . Created 5 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
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/painted_scrollbar_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/nine_patch_layer_impl_unittest.cc
diff --git a/cc/layers/nine_patch_layer_impl_unittest.cc b/cc/layers/nine_patch_layer_impl_unittest.cc
index 8537ddb4e27e895e697257d243300dc99b61f1fa..2e230ee10a33b873d0aa84a921172ed8c8ae47f6 100644
--- a/cc/layers/nine_patch_layer_impl_unittest.cc
+++ b/cc/layers/nine_patch_layer_impl_unittest.cc
@@ -54,7 +54,6 @@ void NinePatchLayerLayoutTest(const gfx::Size& bitmap_size,
NinePatchLayerImpl::Create(host_impl.active_tree(), 1);
layer->draw_properties().visible_content_rect = visible_content_rect;
layer->SetBounds(layer_size);
- layer->SetContentBounds(layer_size);
layer->SetHasRenderSurface(true);
layer->draw_properties().render_target = layer.get();
@@ -231,7 +230,6 @@ TEST(NinePatchLayerImplTest, Occlusion) {
NinePatchLayerImpl* nine_patch_layer_impl =
impl.AddChildToRoot<NinePatchLayerImpl>();
nine_patch_layer_impl->SetBounds(layer_size);
- nine_patch_layer_impl->SetContentBounds(layer_size);
nine_patch_layer_impl->SetDrawsContent(true);
nine_patch_layer_impl->SetUIResourceId(uid);
nine_patch_layer_impl->SetImageBounds(gfx::Size(10, 10));
@@ -304,7 +302,6 @@ TEST(NinePatchLayerImplTest, OpaqueRect) {
NinePatchLayerImpl *nine_patch_layer_impl =
impl.AddChildToRoot<NinePatchLayerImpl>();
nine_patch_layer_impl->SetBounds(layer_size);
- nine_patch_layer_impl->SetContentBounds(layer_size);
nine_patch_layer_impl->SetDrawsContent(true);
impl.CalcDrawProps(viewport_size);
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/painted_scrollbar_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698