OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |