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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix counting of required for activation tiles. Created 6 years, 1 month 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/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 1227
1228 const std::vector<PictureLayerImpl*>& LayerTreeHostImpl::GetPictureLayers() 1228 const std::vector<PictureLayerImpl*>& LayerTreeHostImpl::GetPictureLayers()
1229 const { 1229 const {
1230 return picture_layers_; 1230 return picture_layers_;
1231 } 1231 }
1232 1232
1233 void LayerTreeHostImpl::NotifyReadyToActivate() { 1233 void LayerTreeHostImpl::NotifyReadyToActivate() {
1234 client_->NotifyReadyToActivate(); 1234 client_->NotifyReadyToActivate();
1235 } 1235 }
1236 1236
1237 void LayerTreeHostImpl::NotifyReadyToDraw() {
1238 client_->NotifyReadyToDraw();
1239 }
1240
1237 void LayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { 1241 void LayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) {
1238 TRACE_EVENT0("cc", "LayerTreeHostImpl::NotifyTileStateChanged"); 1242 TRACE_EVENT0("cc", "LayerTreeHostImpl::NotifyTileStateChanged");
1239 1243
1240 if (active_tree_) { 1244 if (active_tree_) {
1241 LayerImpl* layer_impl = 1245 LayerImpl* layer_impl =
1242 active_tree_->FindActiveTreeLayerById(tile->layer_id()); 1246 active_tree_->FindActiveTreeLayerById(tile->layer_id());
1243 if (layer_impl) 1247 if (layer_impl)
1244 layer_impl->NotifyTileStateChanged(tile); 1248 layer_impl->NotifyTileStateChanged(tile);
1245 } 1249 }
1246 1250
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
3422 } 3426 }
3423 3427
3424 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3428 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3425 std::vector<PictureLayerImpl*>::iterator it = 3429 std::vector<PictureLayerImpl*>::iterator it =
3426 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3430 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3427 DCHECK(it != picture_layers_.end()); 3431 DCHECK(it != picture_layers_.end());
3428 picture_layers_.erase(it); 3432 picture_layers_.erase(it);
3429 } 3433 }
3430 3434
3431 } // namespace cc 3435 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698