OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_GFX_COMPOSITOR_LAYER_H_ |
6 #define UI_GFX_COMPOSITOR_LAYER_H_ | 6 #define UI_GFX_COMPOSITOR_LAYER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContentLayerClient
.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContentLayerClient
.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebLayer.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebLayer.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebLayerClient.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebLayerClient.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
20 #include "ui/gfx/compositor/compositor.h" | 20 #include "ui/gfx/compositor/compositor.h" |
21 #include "ui/gfx/compositor/layer_animation_delegate.h" | 21 #include "ui/gfx/compositor/layer_animation_delegate.h" |
22 #include "ui/gfx/compositor/layer_delegate.h" | 22 #include "ui/gfx/compositor/layer_delegate.h" |
23 | 23 |
24 class SkCanvas; | 24 class SkCanvas; |
25 | 25 |
26 namespace ui { | 26 namespace ui { |
27 | 27 |
28 class Compositor; | 28 class Compositor; |
29 class LayerAnimator; | 29 class LayerAnimator; |
30 class LayerAnimationSequence; | |
31 class Texture; | 30 class Texture; |
32 | 31 |
33 // Layer manages a texture, transform and a set of child Layers. Any View that | 32 // Layer manages a texture, transform and a set of child Layers. Any View that |
34 // has enabled layers ends up creating a Layer to manage the texture. | 33 // has enabled layers ends up creating a Layer to manage the texture. |
35 // A Layer can also be created without a texture, in which case it renders | 34 // A Layer can also be created without a texture, in which case it renders |
36 // nothing and is simply used as a node in a hierarchy of layers. | 35 // nothing and is simply used as a node in a hierarchy of layers. |
37 // | 36 // |
38 // NOTE: unlike Views, each Layer does *not* own its children views. If you | 37 // NOTE: unlike Views, each Layer does *not* own its children views. If you |
39 // delete a Layer and it has children, the parent of each child layer is set to | 38 // delete a Layer and it has children, the parent of each child layer is set to |
40 // NULL, but the children are not deleted. | 39 // NULL, but the children are not deleted. |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 WebKit::WebLayer web_layer_; | 309 WebKit::WebLayer web_layer_; |
311 bool web_layer_is_accelerated_; | 310 bool web_layer_is_accelerated_; |
312 #endif | 311 #endif |
313 | 312 |
314 DISALLOW_COPY_AND_ASSIGN(Layer); | 313 DISALLOW_COPY_AND_ASSIGN(Layer); |
315 }; | 314 }; |
316 | 315 |
317 } // namespace ui | 316 } // namespace ui |
318 | 317 |
319 #endif // UI_GFX_COMPOSITOR_LAYER_H_ | 318 #endif // UI_GFX_COMPOSITOR_LAYER_H_ |
OLD | NEW |