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/layers/solid_color_layer_impl_unittest.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/render_surface_unittest.cc ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_layer_impl_unittest.cc
diff --git a/cc/layers/solid_color_layer_impl_unittest.cc b/cc/layers/solid_color_layer_impl_unittest.cc
index 320345f36d1860b8915c32bbb8fe082b7167f6f2..7150f80ef6556c0e967a47408c0c808d06ae585b 100644
--- a/cc/layers/solid_color_layer_impl_unittest.cc
+++ b/cc/layers/solid_color_layer_impl_unittest.cc
@@ -34,7 +34,7 @@ TEST(SolidColorLayerImplTest, VerifyTilingCompleteAndNoOverlap) {
layer->draw_properties().visible_content_rect = visible_content_rect;
layer->SetBounds(layer_size);
layer->SetContentBounds(layer_size);
- layer->CreateRenderSurface();
+ layer->SetHasRenderSurface(true);
layer->draw_properties().render_target = layer.get();
AppendQuadsData data;
@@ -61,7 +61,7 @@ TEST(SolidColorLayerImplTest, VerifyCorrectBackgroundColorInQuad) {
layer->SetBounds(layer_size);
layer->SetContentBounds(layer_size);
layer->SetBackgroundColor(test_color);
- layer->CreateRenderSurface();
+ layer->SetHasRenderSurface(true);
layer->draw_properties().render_target = layer.get();
AppendQuadsData data;
@@ -90,7 +90,7 @@ TEST(SolidColorLayerImplTest, VerifyCorrectOpacityInQuad) {
layer->SetBounds(layer_size);
layer->SetContentBounds(layer_size);
layer->draw_properties().opacity = opacity;
- layer->CreateRenderSurface();
+ layer->SetHasRenderSurface(true);
layer->draw_properties().render_target = layer.get();
AppendQuadsData data;
« no previous file with comments | « cc/layers/render_surface_unittest.cc ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698