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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "cc/animation/animation.h" | 10 #include "cc/animation/animation.h" |
11 #include "cc/animation/animation_events.h" | 11 #include "cc/animation/animation_events.h" |
12 #include "cc/animation/layer_animation_controller.h" | 12 #include "cc/animation/layer_animation_controller.h" |
13 #include "cc/base/thread.h" | 13 #include "cc/base/thread.h" |
14 #include "cc/layers/layer_impl.h" | 14 #include "cc/layers/layer_impl.h" |
15 #include "cc/trees/layer_tree_host.h" | 15 #include "cc/trees/layer_tree_host.h" |
16 #include "cc/trees/layer_tree_impl.h" | 16 #include "cc/trees/layer_tree_impl.h" |
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimationDelegat
e.h" | 17 #include "third_party/WebKit/public/platform/WebAnimationDelegate.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerScrollClien
t.h" | 18 #include "third_party/WebKit/public/platform/WebLayerScrollClient.h" |
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 19 #include "third_party/WebKit/public/platform/WebSize.h" |
20 #include "third_party/skia/include/core/SkImageFilter.h" | 20 #include "third_party/skia/include/core/SkImageFilter.h" |
21 #include "ui/gfx/rect_conversions.h" | 21 #include "ui/gfx/rect_conversions.h" |
22 | 22 |
23 namespace cc { | 23 namespace cc { |
24 | 24 |
25 static int s_next_layer_id = 1; | 25 static int s_next_layer_id = 1; |
26 | 26 |
27 scoped_refptr<Layer> Layer::Create() { | 27 scoped_refptr<Layer> Layer::Create() { |
28 return make_scoped_refptr(new Layer()); | 28 return make_scoped_refptr(new Layer()); |
29 } | 29 } |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 | 844 |
845 ScrollbarLayer* Layer::ToScrollbarLayer() { | 845 ScrollbarLayer* Layer::ToScrollbarLayer() { |
846 return NULL; | 846 return NULL; |
847 } | 847 } |
848 | 848 |
849 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 849 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
850 return layer_tree_host_->rendering_stats_instrumentation(); | 850 return layer_tree_host_->rendering_stats_instrumentation(); |
851 } | 851 } |
852 | 852 |
853 } // namespace cc | 853 } // namespace cc |
OLD | NEW |