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

Side by Side Diff: cc/tiles/tile_manager_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 } 1660 }
1661 } 1661 }
1662 1662
1663 class ActivationTasksDoNotBlockReadyToDrawTest : public TileManagerTest { 1663 class ActivationTasksDoNotBlockReadyToDrawTest : public TileManagerTest {
1664 protected: 1664 protected:
1665 std::unique_ptr<TaskGraphRunner> CreateTaskGraphRunner() override { 1665 std::unique_ptr<TaskGraphRunner> CreateTaskGraphRunner() override {
1666 return base::WrapUnique(new SynchronousTaskGraphRunner()); 1666 return base::WrapUnique(new SynchronousTaskGraphRunner());
1667 } 1667 }
1668 1668
1669 std::unique_ptr<OutputSurface> CreateOutputSurface() override { 1669 std::unique_ptr<OutputSurface> CreateOutputSurface() override {
1670 return FakeOutputSurface::Create3d(); 1670 return FakeOutputSurface::CreateDelegating3d();
1671 } 1671 }
1672 1672
1673 LayerTreeSettings CreateSettings() override { 1673 LayerTreeSettings CreateSettings() override {
1674 LayerTreeSettings settings = TileManagerTest::CreateSettings(); 1674 LayerTreeSettings settings = TileManagerTest::CreateSettings();
1675 settings.gpu_rasterization_forced = true; 1675 settings.gpu_rasterization_forced = true;
1676 return settings; 1676 return settings;
1677 } 1677 }
1678 }; 1678 };
1679 1679
1680 TEST_F(ActivationTasksDoNotBlockReadyToDrawTest, 1680 TEST_F(ActivationTasksDoNotBlockReadyToDrawTest,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 } 1888 }
1889 1889
1890 // Ensures that the tile manager does not attempt to reuse tiles when partial 1890 // Ensures that the tile manager does not attempt to reuse tiles when partial
1891 // raster is disabled. 1891 // raster is disabled.
1892 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) { 1892 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) {
1893 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */); 1893 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */);
1894 } 1894 }
1895 1895
1896 } // namespace 1896 } // namespace
1897 } // namespace cc 1897 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/picture_layer_tiling_set_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698