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/output/copy_output_request.h" | 15 #include "cc/output/copy_output_request.h" |
16 #include "cc/trees/layer_tree_host.h" | 16 #include "cc/trees/layer_tree_host.h" |
17 #include "cc/trees/layer_tree_impl.h" | 17 #include "cc/trees/layer_tree_impl.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimationDelegat
e.h" | 18 #include "third_party/WebKit/public/platform/WebAnimationDelegate.h" |
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerScrollClien
t.h" | 19 #include "third_party/WebKit/public/platform/WebLayerScrollClient.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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 | 856 |
857 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 857 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
858 return layer_tree_host_->rendering_stats_instrumentation(); | 858 return layer_tree_host_->rendering_stats_instrumentation(); |
859 } | 859 } |
860 | 860 |
861 bool Layer::SupportsLCDText() const { | 861 bool Layer::SupportsLCDText() const { |
862 return false; | 862 return false; |
863 } | 863 } |
864 | 864 |
865 } // namespace cc | 865 } // namespace cc |
OLD | NEW |