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

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

Issue 15774010: Add TRACE_EVENT_IS_NEW_TRACE as a way to snapshot objects at start of recording (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.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 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/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "cc/animation/animation_registrar.h" 9 #include "cc/animation/animation_registrar.h"
10 #include "cc/animation/scrollbar_animation_controller.h" 10 #include "cc/animation/scrollbar_animation_controller.h"
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 double_sided_ = double_sided; 936 double_sided_ = double_sided;
937 NoteLayerPropertyChangedForSubtree(); 937 NoteLayerPropertyChangedForSubtree();
938 } 938 }
939 939
940 Region LayerImpl::VisibleContentOpaqueRegion() const { 940 Region LayerImpl::VisibleContentOpaqueRegion() const {
941 if (contents_opaque()) 941 if (contents_opaque())
942 return visible_content_rect(); 942 return visible_content_rect();
943 return Region(); 943 return Region();
944 } 944 }
945 945
946 void LayerImpl::DidBeginTracing() {}
947
946 void LayerImpl::DidLoseOutputSurface() {} 948 void LayerImpl::DidLoseOutputSurface() {}
947 949
948 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) { 950 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) {
949 if (max_scroll_offset_ == max_scroll_offset) 951 if (max_scroll_offset_ == max_scroll_offset)
950 return; 952 return;
951 max_scroll_offset_ = max_scroll_offset; 953 max_scroll_offset_ = max_scroll_offset;
952 954
953 layer_tree_impl()->set_needs_update_draw_properties(); 955 layer_tree_impl()->set_needs_update_draw_properties();
954 UpdateScrollbarPositions(); 956 UpdateScrollbarPositions();
955 } 957 }
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 1149
1148 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } 1150 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; }
1149 1151
1150 scoped_ptr<base::Value> LayerImpl::AsValue() const { 1152 scoped_ptr<base::Value> LayerImpl::AsValue() const {
1151 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 1153 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
1152 AsValueInto(state.get()); 1154 AsValueInto(state.get());
1153 return state.PassAs<base::Value>(); 1155 return state.PassAs<base::Value>();
1154 } 1156 }
1155 1157
1156 } // namespace cc 1158 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698