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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 14772032: Trace picture piles on layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
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/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 SkColor* color, 947 SkColor* color,
948 float* width) const { 948 float* width) const {
949 *color = DebugColors::TiledContentLayerBorderColor(); 949 *color = DebugColors::TiledContentLayerBorderColor();
950 *width = DebugColors::TiledContentLayerBorderWidth(layer_tree_impl()); 950 *width = DebugColors::TiledContentLayerBorderWidth(layer_tree_impl());
951 } 951 }
952 952
953 void PictureLayerImpl::AsValueInto(base::DictionaryValue* state) const { 953 void PictureLayerImpl::AsValueInto(base::DictionaryValue* state) const {
954 LayerImpl::AsValueInto(state); 954 LayerImpl::AsValueInto(state);
955 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); 955 state->SetDouble("ideal_contents_scale", ideal_contents_scale_);
956 state->Set("tilings", tilings_->AsValue().release()); 956 state->Set("tilings", tilings_->AsValue().release());
957 state->Set("pictures", pile_->AsValue().release());
957 state->Set("invalidation", invalidation_.AsValue().release()); 958 state->Set("invalidation", invalidation_.AsValue().release());
958 } 959 }
959 960
960 } // namespace cc 961 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698