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/layers/layer_impl.cc

Issue 67563002: cc: Plumbing for impl thread micro benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: speculative fix Created 7 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 | 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 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/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/strings/stringprintf.h" 8 #include "base/strings/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"
11 #include "cc/animation/scrollbar_animation_controller_linear_fade.h" 11 #include "cc/animation/scrollbar_animation_controller_linear_fade.h"
12 #include "cc/animation/scrollbar_animation_controller_thinning.h" 12 #include "cc/animation/scrollbar_animation_controller_thinning.h"
13 #include "cc/base/math_util.h" 13 #include "cc/base/math_util.h"
14 #include "cc/debug/debug_colors.h" 14 #include "cc/debug/debug_colors.h"
15 #include "cc/debug/layer_tree_debug_state.h" 15 #include "cc/debug/layer_tree_debug_state.h"
16 #include "cc/debug/micro_benchmark_impl.h"
16 #include "cc/debug/traced_value.h" 17 #include "cc/debug/traced_value.h"
17 #include "cc/input/layer_scroll_offset_delegate.h" 18 #include "cc/input/layer_scroll_offset_delegate.h"
18 #include "cc/layers/painted_scrollbar_layer_impl.h" 19 #include "cc/layers/painted_scrollbar_layer_impl.h"
19 #include "cc/layers/quad_sink.h" 20 #include "cc/layers/quad_sink.h"
20 #include "cc/output/copy_output_request.h" 21 #include "cc/output/copy_output_request.h"
21 #include "cc/quads/debug_border_draw_quad.h" 22 #include "cc/quads/debug_border_draw_quad.h"
22 #include "cc/trees/layer_tree_impl.h" 23 #include "cc/trees/layer_tree_impl.h"
23 #include "cc/trees/layer_tree_settings.h" 24 #include "cc/trees/layer_tree_settings.h"
24 #include "cc/trees/proxy.h" 25 #include "cc/trees/proxy.h"
25 #include "ui/gfx/box_f.h" 26 #include "ui/gfx/box_f.h"
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 } 1342 }
1342 1343
1343 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } 1344 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; }
1344 1345
1345 scoped_ptr<base::Value> LayerImpl::AsValue() const { 1346 scoped_ptr<base::Value> LayerImpl::AsValue() const {
1346 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 1347 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
1347 AsValueInto(state.get()); 1348 AsValueInto(state.get());
1348 return state.PassAs<base::Value>(); 1349 return state.PassAs<base::Value>();
1349 } 1350 }
1350 1351
1352 void LayerImpl::RunMicroBenchmark(MicroBenchmarkImpl* benchmark) {
1353 benchmark->RunOnLayer(this);
1354 }
1355
1351 } // namespace cc 1356 } // 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