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

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

Issue 565043002: cc: Remove the opaque rect return-parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentlayerclientopaque: build Created 6 years, 3 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/resources/tile_manager.cc ('k') | cc/test/fake_content_layer_client.h » ('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 "cc/resources/eviction_tile_priority_queue.h" 5 #include "cc/resources/eviction_tile_priority_queue.h"
6 #include "cc/resources/raster_tile_priority_queue.h" 6 #include "cc/resources/raster_tile_priority_queue.h"
7 #include "cc/resources/tile.h" 7 #include "cc/resources/tile.h"
8 #include "cc/resources/tile_priority.h" 8 #include "cc/resources/tile_priority.h"
9 #include "cc/test/fake_impl_proxy.h" 9 #include "cc/test/fake_impl_proxy.h"
10 #include "cc/test/fake_layer_tree_host_impl.h" 10 #include "cc/test/fake_layer_tree_host_impl.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 TileVector CreateTilesWithSize(int count, 103 TileVector CreateTilesWithSize(int count,
104 TilePriority active_priority, 104 TilePriority active_priority,
105 TilePriority pending_priority, 105 TilePriority pending_priority,
106 const gfx::Size& tile_size) { 106 const gfx::Size& tile_size) {
107 TileVector tiles; 107 TileVector tiles;
108 for (int i = 0; i < count; ++i) { 108 for (int i = 0; i < count; ++i) {
109 scoped_refptr<Tile> tile = tile_manager_->CreateTile(picture_pile_.get(), 109 scoped_refptr<Tile> tile = tile_manager_->CreateTile(picture_pile_.get(),
110 tile_size, 110 tile_size,
111 gfx::Rect(), 111 gfx::Rect(),
112 gfx::Rect(),
113 1.0, 112 1.0,
114 0, 113 0,
115 0, 114 0,
116 0); 115 0);
117 tile->SetPriority(ACTIVE_TREE, active_priority); 116 tile->SetPriority(ACTIVE_TREE, active_priority);
118 tile->SetPriority(PENDING_TREE, pending_priority); 117 tile->SetPriority(PENDING_TREE, pending_priority);
119 tiles.push_back(tile); 118 tiles.push_back(tile);
120 } 119 }
121 return tiles; 120 return tiles;
122 } 121 }
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 all_tiles.insert(queue.Top()); 1143 all_tiles.insert(queue.Top());
1145 ++tile_count; 1144 ++tile_count;
1146 queue.Pop(); 1145 queue.Pop();
1147 } 1146 }
1148 EXPECT_EQ(tile_count, all_tiles.size()); 1147 EXPECT_EQ(tile_count, all_tiles.size());
1149 EXPECT_EQ(17u, tile_count); 1148 EXPECT_EQ(17u, tile_count);
1150 } 1149 }
1151 1150
1152 } // namespace 1151 } // namespace
1153 } // namespace cc 1152 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698