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

Side by Side Diff: cc/resources/tile_manager.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.h ('k') | cc/resources/tile_manager_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/tile_manager.h" 5 #include "cc/resources/tile_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 10
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 FreeUnusedResourcesForTile(tile); 1120 FreeUnusedResourcesForTile(tile);
1121 if (tile->priority(ACTIVE_TREE).distance_to_visible == 0.f) 1121 if (tile->priority(ACTIVE_TREE).distance_to_visible == 0.f)
1122 did_initialize_visible_tile_ = true; 1122 did_initialize_visible_tile_ = true;
1123 1123
1124 client_->NotifyTileStateChanged(tile); 1124 client_->NotifyTileStateChanged(tile);
1125 } 1125 }
1126 1126
1127 scoped_refptr<Tile> TileManager::CreateTile(PicturePileImpl* picture_pile, 1127 scoped_refptr<Tile> TileManager::CreateTile(PicturePileImpl* picture_pile,
1128 const gfx::Size& tile_size, 1128 const gfx::Size& tile_size,
1129 const gfx::Rect& content_rect, 1129 const gfx::Rect& content_rect,
1130 const gfx::Rect& opaque_rect,
1131 float contents_scale, 1130 float contents_scale,
1132 int layer_id, 1131 int layer_id,
1133 int source_frame_number, 1132 int source_frame_number,
1134 int flags) { 1133 int flags) {
1135 scoped_refptr<Tile> tile = make_scoped_refptr(new Tile(this, 1134 scoped_refptr<Tile> tile = make_scoped_refptr(new Tile(this,
1136 picture_pile, 1135 picture_pile,
1137 tile_size, 1136 tile_size,
1138 content_rect, 1137 content_rect,
1139 opaque_rect,
1140 contents_scale, 1138 contents_scale,
1141 layer_id, 1139 layer_id,
1142 source_frame_number, 1140 source_frame_number,
1143 flags)); 1141 flags));
1144 DCHECK(tiles_.find(tile->id()) == tiles_.end()); 1142 DCHECK(tiles_.find(tile->id()) == tiles_.end());
1145 1143
1146 tiles_[tile->id()] = tile.get(); 1144 tiles_[tile->id()] = tile.get();
1147 used_layer_counts_[tile->layer_id()]++; 1145 used_layer_counts_[tile->layer_id()]++;
1148 prioritized_tiles_dirty_ = true; 1146 prioritized_tiles_dirty_ = true;
1149 return tile; 1147 return tile;
(...skipping 21 matching lines...) Expand all
1171 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate"); 1169 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate");
1172 1170
1173 rasterizer_->CheckForCompletedTasks(); 1171 rasterizer_->CheckForCompletedTasks();
1174 did_check_for_completed_tasks_since_last_schedule_tasks_ = true; 1172 did_check_for_completed_tasks_since_last_schedule_tasks_ = true;
1175 1173
1176 if (IsReadyToActivate()) 1174 if (IsReadyToActivate())
1177 client_->NotifyReadyToActivate(); 1175 client_->NotifyReadyToActivate();
1178 } 1176 }
1179 1177
1180 } // namespace cc 1178 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.h ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698