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 #ifndef LayerChromium_h | 5 #ifndef LayerChromium_h |
6 #define LayerChromium_h | 6 #define LayerChromium_h |
7 | 7 |
8 #include "FloatPoint.h" | 8 #include "FloatPoint.h" |
9 #include "Region.h" | 9 #include "Region.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "cc/cc_export.h" |
11 #include "cc/layer_animation_controller.h" | 12 #include "cc/layer_animation_controller.h" |
12 #include "cc/occlusion_tracker.h" | 13 #include "cc/occlusion_tracker.h" |
13 #include "cc/render_surface.h" | 14 #include "cc/render_surface.h" |
14 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
15 #include <public/WebFilterOperations.h> | 16 #include <public/WebFilterOperations.h> |
16 #include <public/WebTransformationMatrix.h> | 17 #include <public/WebTransformationMatrix.h> |
17 #include <string> | 18 #include <string> |
18 #include <vector> | 19 #include <vector> |
19 | 20 |
20 namespace WebKit { | 21 namespace WebKit { |
(...skipping 11 matching lines...) Expand all Loading... |
32 class LayerImpl; | 33 class LayerImpl; |
33 class LayerTreeHost; | 34 class LayerTreeHost; |
34 class PriorityCalculator; | 35 class PriorityCalculator; |
35 class ResourceUpdateQueue; | 36 class ResourceUpdateQueue; |
36 class ScrollbarLayer; | 37 class ScrollbarLayer; |
37 struct AnimationEvent; | 38 struct AnimationEvent; |
38 struct RenderingStats; | 39 struct RenderingStats; |
39 | 40 |
40 // Base class for composited layers. Special layer types are derived from | 41 // Base class for composited layers. Special layer types are derived from |
41 // this class. | 42 // this class. |
42 class Layer : public base::RefCounted<Layer>, public LayerAnimationControllerCli
ent { | 43 class CC_EXPORT Layer : public base::RefCounted<Layer>, public LayerAnimationCon
trollerClient { |
43 public: | 44 public: |
44 typedef std::vector<scoped_refptr<Layer> > LayerList; | 45 typedef std::vector<scoped_refptr<Layer> > LayerList; |
45 | 46 |
46 static scoped_refptr<Layer> create(); | 47 static scoped_refptr<Layer> create(); |
47 | 48 |
48 // LayerAnimationControllerClient implementation | 49 // LayerAnimationControllerClient implementation |
49 virtual int id() const OVERRIDE; | 50 virtual int id() const OVERRIDE; |
50 virtual void setOpacityFromAnimation(float) OVERRIDE; | 51 virtual void setOpacityFromAnimation(float) OVERRIDE; |
51 virtual float opacity() const OVERRIDE; | 52 virtual float opacity() const OVERRIDE; |
52 virtual void setTransformFromAnimation(const WebKit::WebTransformationMatrix
&) OVERRIDE; | 53 virtual void setTransformFromAnimation(const WebKit::WebTransformationMatrix
&) OVERRIDE; |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 400 |
400 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 401 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
401 WebKit::WebLayerScrollClient* m_layerScrollClient; | 402 WebKit::WebLayerScrollClient* m_layerScrollClient; |
402 }; | 403 }; |
403 | 404 |
404 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 405 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
405 | 406 |
406 } // namespace cc | 407 } // namespace cc |
407 | 408 |
408 #endif | 409 #endif |
OLD | NEW |