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

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

Issue 463403002: Include tile manager state in lthi state dump (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after
3193 ActivationStateAsValueInto(state); 3193 ActivationStateAsValueInto(state);
3194 state->EndDictionary(); 3194 state->EndDictionary();
3195 } 3195 }
3196 state->BeginDictionary("device_viewport_size"); 3196 state->BeginDictionary("device_viewport_size");
3197 MathUtil::AddToTracedValue(device_viewport_size_, state); 3197 MathUtil::AddToTracedValue(device_viewport_size_, state);
3198 state->EndDictionary(); 3198 state->EndDictionary();
3199 if (tile_manager_) { 3199 if (tile_manager_) {
3200 state->BeginArray("tiles"); 3200 state->BeginArray("tiles");
3201 tile_manager_->AllTilesAsValueInto(state); 3201 tile_manager_->AllTilesAsValueInto(state);
3202 state->EndArray(); 3202 state->EndArray();
3203
3204 state->BeginDictionary("tile_manager_basic_state");
3205 tile_manager_->BasicStateAsValueInto(state);
3206 state->EndDictionary();
3203 } 3207 }
3204 state->BeginDictionary("active_tree"); 3208 state->BeginDictionary("active_tree");
3205 active_tree_->AsValueInto(state); 3209 active_tree_->AsValueInto(state);
3206 state->EndDictionary(); 3210 state->EndDictionary();
3207 if (pending_tree_) { 3211 if (pending_tree_) {
3208 state->BeginDictionary("pending_tree"); 3212 state->BeginDictionary("pending_tree");
3209 pending_tree_->AsValueInto(state); 3213 pending_tree_->AsValueInto(state);
3210 state->EndDictionary(); 3214 state->EndDictionary();
3211 } 3215 }
3212 if (frame) { 3216 if (frame) {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3371 } 3375 }
3372 3376
3373 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3377 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3374 std::vector<PictureLayerImpl*>::iterator it = 3378 std::vector<PictureLayerImpl*>::iterator it =
3375 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3379 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3376 DCHECK(it != picture_layers_.end()); 3380 DCHECK(it != picture_layers_.end());
3377 picture_layers_.erase(it); 3381 picture_layers_.erase(it);
3378 } 3382 }
3379 3383
3380 } // namespace cc 3384 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698