| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CCLayerImpl_h | 5 #ifndef CCLayerImpl_h |
| 6 #define CCLayerImpl_h | 6 #define CCLayerImpl_h |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "FloatRect.h" | 10 #include "FloatRect.h" |
| 9 #include "IntRect.h" | 11 #include "IntRect.h" |
| 10 #include "Region.h" | 12 #include "Region.h" |
| 11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "cc/cc_export.h" |
| 13 #include "cc/input_handler.h" | 16 #include "cc/input_handler.h" |
| 14 #include "cc/layer_animation_controller.h" | 17 #include "cc/layer_animation_controller.h" |
| 15 #include "cc/render_pass.h" | 18 #include "cc/render_pass.h" |
| 16 #include "cc/render_surface_impl.h" | 19 #include "cc/render_surface_impl.h" |
| 17 #include "cc/resource_provider.h" | 20 #include "cc/resource_provider.h" |
| 18 #include "cc/scoped_ptr_vector.h" | 21 #include "cc/scoped_ptr_vector.h" |
| 19 #include "cc/shared_quad_state.h" | 22 #include "cc/shared_quad_state.h" |
| 20 #include "third_party/skia/include/core/SkColor.h" | 23 #include "third_party/skia/include/core/SkColor.h" |
| 21 #include <public/WebFilterOperations.h> | 24 #include <public/WebFilterOperations.h> |
| 22 #include <public/WebTransformationMatrix.h> | 25 #include <public/WebTransformationMatrix.h> |
| 23 #include <string> | |
| 24 | 26 |
| 25 namespace cc { | 27 namespace cc { |
| 26 | 28 |
| 27 class LayerSorter; | 29 class LayerSorter; |
| 28 class LayerTreeHostImpl; | 30 class LayerTreeHostImpl; |
| 29 class QuadSink; | 31 class QuadSink; |
| 30 class Renderer; | 32 class Renderer; |
| 31 class ScrollbarAnimationController; | 33 class ScrollbarAnimationController; |
| 32 class ScrollbarLayerImpl; | 34 class ScrollbarLayerImpl; |
| 33 class Layer; | 35 class Layer; |
| 34 | 36 |
| 35 struct AppendQuadsData; | 37 struct AppendQuadsData; |
| 36 | 38 |
| 37 class LayerImpl : public LayerAnimationControllerClient { | 39 class CC_EXPORT LayerImpl : public LayerAnimationControllerClient { |
| 38 public: | 40 public: |
| 39 static scoped_ptr<LayerImpl> create(int id) | 41 static scoped_ptr<LayerImpl> create(int id) |
| 40 { | 42 { |
| 41 return make_scoped_ptr(new LayerImpl(id)); | 43 return make_scoped_ptr(new LayerImpl(id)); |
| 42 } | 44 } |
| 43 | 45 |
| 44 virtual ~LayerImpl(); | 46 virtual ~LayerImpl(); |
| 45 | 47 |
| 46 // LayerAnimationControllerClient implementation. | 48 // LayerAnimationControllerClient implementation. |
| 47 virtual int id() const OVERRIDE; | 49 virtual int id() const OVERRIDE; |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 // Rect indicating what was repainted/updated during update. | 389 // Rect indicating what was repainted/updated during update. |
| 388 // Note that plugin layers bypass this and leave it empty. | 390 // Note that plugin layers bypass this and leave it empty. |
| 389 // Uses layer's content space. | 391 // Uses layer's content space. |
| 390 FloatRect m_updateRect; | 392 FloatRect m_updateRect; |
| 391 | 393 |
| 392 // Manages animations for this layer. | 394 // Manages animations for this layer. |
| 393 scoped_ptr<LayerAnimationController> m_layerAnimationController; | 395 scoped_ptr<LayerAnimationController> m_layerAnimationController; |
| 394 | 396 |
| 395 // Manages scrollbars for this layer | 397 // Manages scrollbars for this layer |
| 396 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; | 398 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; |
| 399 |
| 400 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 397 }; | 401 }; |
| 398 | 402 |
| 399 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); | 403 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); |
| 400 | 404 |
| 401 } | 405 } |
| 402 | 406 |
| 403 #endif // CCLayerImpl_h | 407 #endif // CCLayerImpl_h |
| OLD | NEW |