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

Unified Diff: cc/layers/render_surface_impl_unittest.cc

Issue 2659883003: cc: Remove direct calls to LayerImpl::SetHasRenderSurface from tests (Closed)
Patch Set: Created 3 years, 11 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/picture_layer_impl_unittest.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl_unittest.cc
diff --git a/cc/layers/render_surface_impl_unittest.cc b/cc/layers/render_surface_impl_unittest.cc
index 27b3f67fe48519ecad3675a4cc58d844e2094e74..3282d307d0be369a93fd716ae482d1210592ad4b 100644
--- a/cc/layers/render_surface_impl_unittest.cc
+++ b/cc/layers/render_surface_impl_unittest.cc
@@ -71,11 +71,10 @@ TEST(RenderSurfaceLayerImplTest, AppendQuadsWithScaledMask) {
LayerTestCommon::LayerImplTest impl;
std::unique_ptr<LayerImpl> root =
LayerImpl::Create(impl.host_impl()->active_tree(), 2);
- root->SetHasRenderSurface(true);
std::unique_ptr<LayerImpl> surface =
LayerImpl::Create(impl.host_impl()->active_tree(), 3);
surface->SetBounds(layer_size);
- surface->SetHasRenderSurface(true);
+ surface->test_properties()->force_render_surface = true;
gfx::Transform scale;
scale.Scale(2, 2);
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698