Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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.h" | 5 #include "cc/layers/layer.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "cc/animation/animation.h" | 8 #include "cc/animation/animation.h" |
| 9 #include "cc/animation/animation_events.h" | 9 #include "cc/animation/animation_events.h" |
| 10 #include "cc/animation/layer_animation_controller.h" | 10 #include "cc/animation/layer_animation_controller.h" |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 810 Region Layer::VisibleContentOpaqueRegion() const { | 810 Region Layer::VisibleContentOpaqueRegion() const { |
| 811 if (contents_opaque()) | 811 if (contents_opaque()) |
| 812 return visible_content_rect(); | 812 return visible_content_rect(); |
| 813 return Region(); | 813 return Region(); |
| 814 } | 814 } |
| 815 | 815 |
| 816 ScrollbarLayer* Layer::ToScrollbarLayer() { | 816 ScrollbarLayer* Layer::ToScrollbarLayer() { |
| 817 return NULL; | 817 return NULL; |
| 818 } | 818 } |
| 819 | 819 |
| 820 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | |
| 821 CHECK(layer_tree_host()); | |
|
egraether
2013/03/23 00:15:40
I'm not sure what's best here. Should I just store
danakj
2013/03/23 01:56:32
We won't update() when there's no LayerTreeHost, s
| |
| 822 return layer_tree_host()->rendering_stats_instrumentation(); | |
| 823 } | |
| 824 | |
| 820 } // namespace cc | 825 } // namespace cc |
| OLD | NEW |