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

Unified Diff: cc/nine_patch_layer_impl_unittest.cc

Issue 12774006: cc: Chromify Layer and LayerImpl classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MoreAndroidCompilings Created 7 years, 9 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/nine_patch_layer_impl.cc ('k') | cc/nine_patch_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/nine_patch_layer_impl_unittest.cc
diff --git a/cc/nine_patch_layer_impl_unittest.cc b/cc/nine_patch_layer_impl_unittest.cc
index dba3cdfe17949819921dee93d1ab752a162a76d5..19f7d0d87b1b82872ad3a70340f12e70623cf859 100644
--- a/cc/nine_patch_layer_impl_unittest.cc
+++ b/cc/nine_patch_layer_impl_unittest.cc
@@ -42,11 +42,11 @@ TEST(NinePatchLayerImplTest, verifyDrawQuads)
FakeImplProxy proxy;
FakeLayerTreeHostImpl hostImpl(&proxy);
scoped_ptr<NinePatchLayerImpl> layer = NinePatchLayerImpl::Create(hostImpl.activeTree(), 1);
- layer->drawProperties().visible_content_rect = visibleContentRect;
- layer->setBounds(layerSize);
- layer->setContentBounds(layerSize);
- layer->createRenderSurface();
- layer->drawProperties().render_target = layer.get();
+ layer->draw_properties().visible_content_rect = visibleContentRect;
+ layer->SetBounds(layerSize);
+ layer->SetContentBounds(layerSize);
+ layer->CreateRenderSurface();
+ layer->draw_properties().render_target = layer.get();
layer->SetLayout(bitmapSize, apertureRect);
layer->SetResourceId(1);
@@ -54,10 +54,10 @@ TEST(NinePatchLayerImplTest, verifyDrawQuads)
// the shared draw transform.
gfx::Transform transform;
transform.Scale(10, 10);
- layer->drawProperties().target_space_transform = transform;
+ layer->draw_properties().target_space_transform = transform;
AppendQuadsData data;
- layer->appendQuads(quadCuller, data);
+ layer->AppendQuads(&quadCuller, &data);
// Verify quad rects
const QuadList& quads = quadCuller.quadList();
@@ -103,16 +103,16 @@ TEST(NinePatchLayerImplTest, verifyDrawQuadsForSqueezedLayer)
FakeImplProxy proxy;
FakeLayerTreeHostImpl hostImpl(&proxy);
scoped_ptr<NinePatchLayerImpl> layer = NinePatchLayerImpl::Create(hostImpl.activeTree(), 1);
- layer->drawProperties().visible_content_rect = visibleContentRect;
- layer->setBounds(layerSize);
- layer->setContentBounds(layerSize);
- layer->createRenderSurface();
- layer->drawProperties().render_target = layer.get();
+ layer->draw_properties().visible_content_rect = visibleContentRect;
+ layer->SetBounds(layerSize);
+ layer->SetContentBounds(layerSize);
+ layer->CreateRenderSurface();
+ layer->draw_properties().render_target = layer.get();
layer->SetLayout(bitmapSize, apertureRect);
layer->SetResourceId(1);
AppendQuadsData data;
- layer->appendQuads(quadCuller, data);
+ layer->AppendQuads(&quadCuller, &data);
// Verify corner rects fill the layer and don't overlap
const QuadList& quads = quadCuller.quadList();
« no previous file with comments | « cc/nine_patch_layer_impl.cc ('k') | cc/nine_patch_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698