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

Unified Diff: ui/compositor/layer_unittest.cc

Issue 10411086: Makes the browser send pixels to the GPU process where it should (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 69c914a09f60849a457bef513278d114f37989eb..b46d0a1f06add7ee2b06a56d525ae8a9aef47a8e 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -1195,13 +1195,13 @@ TEST_F(LayerWithRealCompositorTest, MAYBE_ScaleReparent) {
EXPECT_EQ("2.0 2.0", l1_delegate.ToScaleString());
}
-// Tests layer::set_scale_canvas(false).
+// Tests layer::set_scale_content(false).
TEST_F(LayerWithRealCompositorTest, MAYBE_NoScaleCanvas) {
scoped_ptr<Layer> root(CreateColorLayer(SK_ColorWHITE,
gfx::Rect(10, 20, 200, 220)));
scoped_ptr<Layer> l1(CreateColorLayer(SK_ColorWHITE,
gfx::Rect(10, 20, 140, 180)));
- l1->set_scale_canvas(false);
+ l1->set_scale_content(false);
root->Add(l1.get());
TestLayerDelegate l1_delegate;
l1_delegate.AddColor(SK_ColorWHITE);
@@ -1209,7 +1209,7 @@ TEST_F(LayerWithRealCompositorTest, MAYBE_NoScaleCanvas) {
GetCompositor()->SetScaleAndSize(2.0f, gfx::Size(500, 500));
GetCompositor()->SetRootLayer(root.get());
- // Scale factor change is notified regardless of scale_canvas flag.
+ // Scale factor change is notified regardless of scale_content flag.
EXPECT_EQ(2.0f, l1_delegate.device_scale_factor());
RunPendingMessages();
« no previous file with comments | « ui/compositor/layer.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698