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

Unified Diff: cc/layers/ui_resource_layer_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/layers/texture_layer_unittest.cc ('k') | cc/layers/ui_resource_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/ui_resource_layer_impl_unittest.cc
diff --git a/cc/layers/ui_resource_layer_impl_unittest.cc b/cc/layers/ui_resource_layer_impl_unittest.cc
index b86fadaca2f2d56466d1b4d97a86aa0c3f22b084..67a986de0040d2a8702c9f9f23946c4284cba1c6 100644
--- a/cc/layers/ui_resource_layer_impl_unittest.cc
+++ b/cc/layers/ui_resource_layer_impl_unittest.cc
@@ -61,7 +61,8 @@ TEST(UIResourceLayerImplTest, VerifyDrawQuads) {
FakeImplTaskRunnerProvider task_runner_provider;
TestSharedBitmapManager shared_bitmap_manager;
TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d();
+ std::unique_ptr<OutputSurface> output_surface =
+ FakeOutputSurface::CreateDelegating3d();
FakeUIResourceLayerTreeHostImpl host_impl(
&task_runner_provider, &shared_bitmap_manager, &task_graph_runner);
host_impl.SetVisible(true);
@@ -106,7 +107,8 @@ TEST(UIResourceLayerImplTest, VerifySetOpaqueOnSkBitmap) {
FakeImplTaskRunnerProvider task_runner_provider;
TestSharedBitmapManager shared_bitmap_manager;
TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d();
+ std::unique_ptr<OutputSurface> output_surface =
+ FakeOutputSurface::CreateDelegating3d();
FakeUIResourceLayerTreeHostImpl host_impl(
&task_runner_provider, &shared_bitmap_manager, &task_graph_runner);
host_impl.SetVisible(true);
@@ -135,7 +137,8 @@ TEST(UIResourceLayerImplTest, VerifySetOpaqueOnLayer) {
FakeImplTaskRunnerProvider task_runner_provider;
TestSharedBitmapManager shared_bitmap_manager;
TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d();
+ std::unique_ptr<OutputSurface> output_surface =
+ FakeOutputSurface::CreateDelegating3d();
FakeUIResourceLayerTreeHostImpl host_impl(
&task_runner_provider, &shared_bitmap_manager, &task_graph_runner);
host_impl.SetVisible(true);
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/layers/ui_resource_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698