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

Side by Side Diff: cc/tiles/tile_manager_unittest.cc

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 namespace cc { 43 namespace cc {
44 namespace { 44 namespace {
45 45
46 class TileManagerTilePriorityQueueTest : public TestLayerTreeHostBase { 46 class TileManagerTilePriorityQueueTest : public TestLayerTreeHostBase {
47 public: 47 public:
48 LayerTreeSettings CreateSettings() override { 48 LayerTreeSettings CreateSettings() override {
49 LayerTreeSettings settings; 49 LayerTreeSettings settings;
50 settings.create_low_res_tiling = true; 50 settings.create_low_res_tiling = true;
51 settings.verify_clip_tree_calculations = true; 51 settings.verify_clip_tree_calculations = true;
52 settings.verify_transform_tree_calculations = true; 52 settings.verify_transform_tree_calculations = true;
53 settings.renderer_settings.buffer_to_texture_target_map =
54 DefaultBufferToTextureTargetMapForTesting();
53 return settings; 55 return settings;
54 } 56 }
55 57
56 TileManager* tile_manager() { return host_impl()->tile_manager(); } 58 TileManager* tile_manager() { return host_impl()->tile_manager(); }
57 }; 59 };
58 60
59 TEST_F(TileManagerTilePriorityQueueTest, RasterTilePriorityQueue) { 61 TEST_F(TileManagerTilePriorityQueueTest, RasterTilePriorityQueue) {
60 const gfx::Size layer_bounds(1000, 1000); 62 const gfx::Size layer_bounds(1000, 1000);
61 host_impl()->SetViewportSize(layer_bounds); 63 host_impl()->SetViewportSize(layer_bounds);
62 SetupDefaultTrees(layer_bounds); 64 SetupDefaultTrees(layer_bounds);
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 } 1886 }
1885 1887
1886 // Ensures that the tile manager does not attempt to reuse tiles when partial 1888 // Ensures that the tile manager does not attempt to reuse tiles when partial
1887 // raster is disabled. 1889 // raster is disabled.
1888 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) { 1890 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) {
1889 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */); 1891 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */);
1890 } 1892 }
1891 1893
1892 } // namespace 1894 } // namespace
1893 } // namespace cc 1895 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698