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

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: fix content browsertests 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
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 } 1890 }
1889 1891
1890 // Ensures that the tile manager does not attempt to reuse tiles when partial 1892 // Ensures that the tile manager does not attempt to reuse tiles when partial
1891 // raster is disabled. 1893 // raster is disabled.
1892 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) { 1894 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) {
1893 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */); 1895 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */);
1894 } 1896 }
1895 1897
1896 } // namespace 1898 } // namespace
1897 } // namespace cc 1899 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698