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