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

Unified Diff: cc/trees/layer_tree_impl_unittest.cc

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor Created 4 years, 5 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/trees/layer_tree_host_unittest_serialization.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl_unittest.cc
diff --git a/cc/trees/layer_tree_impl_unittest.cc b/cc/trees/layer_tree_impl_unittest.cc
index 665942f96606d0844ed3854d21e8a670ca9001a6..ee02d66e888b9f3dfcfda6ebbb497283a3273341 100644
--- a/cc/trees/layer_tree_impl_unittest.cc
+++ b/cc/trees/layer_tree_impl_unittest.cc
@@ -24,7 +24,8 @@ namespace {
class LayerTreeImplTest : public LayerTreeHostCommonTest {
public:
- LayerTreeImplTest() : output_surface_(FakeOutputSurface::Create3d()) {
+ LayerTreeImplTest()
+ : output_surface_(FakeOutputSurface::CreateDelegating3d()) {
LayerTreeSettings settings;
settings.layer_transforms_should_scale_layer_contents = true;
settings.verify_clip_tree_calculations = true;
@@ -116,7 +117,8 @@ TEST_F(LayerTreeImplTest, UpdateViewportAndHitTest) {
LayerTreeSettings settings;
settings.verify_clip_tree_calculations = true;
settings.verify_transform_tree_calculations = true;
- std::unique_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d();
+ std::unique_ptr<OutputSurface> output_surface =
+ FakeOutputSurface::CreateDelegating3d();
std::unique_ptr<FakeLayerTreeHostImpl> host_impl;
host_impl.reset(new FakeLayerTreeHostImpl(settings, &task_runner_provider,
&shared_bitmap_manager,
« no previous file with comments | « cc/trees/layer_tree_host_unittest_serialization.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698