| 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 CC_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "cc/animation/animation_delegate.h" | 14 #include "cc/animation/animation_delegate.h" |
| 15 #include "cc/animation/layer_animation_controller.h" | 15 #include "cc/animation/layer_animation_controller.h" |
| 16 #include "cc/animation/layer_animation_value_observer.h" | 16 #include "cc/animation/layer_animation_value_observer.h" |
| 17 #include "cc/animation/layer_animation_value_provider.h" | 17 #include "cc/animation/layer_animation_value_provider.h" |
| 18 #include "cc/base/cc_export.h" | 18 #include "cc/base/cc_export.h" |
| 19 #include "cc/base/region.h" | 19 #include "cc/base/region.h" |
| 20 #include "cc/base/scoped_ptr_vector.h" | 20 #include "cc/base/scoped_ptr_vector.h" |
| 21 #include "cc/input/input_handler.h" | 21 #include "cc/input/input_handler.h" |
| 22 #include "cc/layers/draw_properties.h" | 22 #include "cc/layers/draw_properties.h" |
| 23 #include "cc/layers/layer_lists.h" | 23 #include "cc/layers/layer_lists.h" |
| 24 #include "cc/layers/layer_position_constraint.h" | 24 #include "cc/layers/layer_position_constraint.h" |
| 25 #include "cc/layers/render_surface_impl.h" | 25 #include "cc/layers/render_surface_impl.h" |
| 26 #include "cc/output/filter_operations.h" | 26 #include "cc/output/filter_operations.h" |
| 27 #include "cc/quads/render_pass.h" | |
| 28 #include "cc/quads/shared_quad_state.h" | 27 #include "cc/quads/shared_quad_state.h" |
| 29 #include "cc/resources/resource_provider.h" | 28 #include "cc/resources/resource_provider.h" |
| 30 #include "skia/ext/refptr.h" | 29 #include "skia/ext/refptr.h" |
| 31 #include "third_party/skia/include/core/SkColor.h" | 30 #include "third_party/skia/include/core/SkColor.h" |
| 32 #include "third_party/skia/include/core/SkImageFilter.h" | 31 #include "third_party/skia/include/core/SkImageFilter.h" |
| 33 #include "third_party/skia/include/core/SkPicture.h" | 32 #include "third_party/skia/include/core/SkPicture.h" |
| 34 #include "ui/gfx/point3_f.h" | 33 #include "ui/gfx/point3_f.h" |
| 35 #include "ui/gfx/rect.h" | 34 #include "ui/gfx/rect.h" |
| 36 #include "ui/gfx/rect_f.h" | 35 #include "ui/gfx/rect_f.h" |
| 37 #include "ui/gfx/transform.h" | 36 #include "ui/gfx/transform.h" |
| 38 | 37 |
| 39 namespace base { | 38 namespace base { |
| 40 namespace debug { | 39 namespace debug { |
| 41 class ConvertableToTraceFormat; | 40 class ConvertableToTraceFormat; |
| 42 class TracedValue; | 41 class TracedValue; |
| 43 } | 42 } |
| 44 | 43 |
| 45 class DictionaryValue; | 44 class DictionaryValue; |
| 46 } | 45 } |
| 47 | 46 |
| 48 namespace cc { | 47 namespace cc { |
| 49 | 48 |
| 50 class LayerTreeHostImpl; | 49 class LayerTreeHostImpl; |
| 51 class LayerTreeImpl; | 50 class LayerTreeImpl; |
| 52 class MicroBenchmarkImpl; | 51 class MicroBenchmarkImpl; |
| 53 template <typename LayerType> | 52 template <typename LayerType> |
| 54 class OcclusionTracker; | 53 class OcclusionTracker; |
| 54 class RenderPass; |
| 55 class RenderPassId; |
| 55 class Renderer; | 56 class Renderer; |
| 56 class ScrollbarAnimationController; | 57 class ScrollbarAnimationController; |
| 57 class ScrollbarLayerImplBase; | 58 class ScrollbarLayerImplBase; |
| 58 class Tile; | 59 class Tile; |
| 59 | 60 |
| 60 struct AppendQuadsData; | 61 struct AppendQuadsData; |
| 61 | 62 |
| 62 enum DrawMode { | 63 enum DrawMode { |
| 63 DRAW_MODE_NONE, | 64 DRAW_MODE_NONE, |
| 64 DRAW_MODE_HARDWARE, | 65 DRAW_MODE_HARDWARE, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 ResourceProvider* resource_provider); | 193 ResourceProvider* resource_provider); |
| 193 virtual void AppendQuads(RenderPass* render_pass, | 194 virtual void AppendQuads(RenderPass* render_pass, |
| 194 const OcclusionTracker<LayerImpl>& occlusion_tracker, | 195 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
| 195 AppendQuadsData* append_quads_data) {} | 196 AppendQuadsData* append_quads_data) {} |
| 196 virtual void DidDraw(ResourceProvider* resource_provider); | 197 virtual void DidDraw(ResourceProvider* resource_provider); |
| 197 | 198 |
| 198 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 199 virtual ResourceProvider::ResourceId ContentsResourceId() const; |
| 199 | 200 |
| 200 virtual bool HasDelegatedContent() const; | 201 virtual bool HasDelegatedContent() const; |
| 201 virtual bool HasContributingDelegatedRenderPasses() const; | 202 virtual bool HasContributingDelegatedRenderPasses() const; |
| 202 virtual RenderPass::Id FirstContributingRenderPassId() const; | 203 virtual RenderPassId FirstContributingRenderPassId() const; |
| 203 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; | 204 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
| 204 | 205 |
| 205 virtual void UpdateTiles( | 206 virtual void UpdateTiles( |
| 206 const OcclusionTracker<LayerImpl>* occlusion_tracker) {} | 207 const OcclusionTracker<LayerImpl>* occlusion_tracker) {} |
| 207 virtual void NotifyTileStateChanged(const Tile* tile) {} | 208 virtual void NotifyTileStateChanged(const Tile* tile) {} |
| 208 | 209 |
| 209 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 210 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
| 210 | 211 |
| 211 // Returns true if this layer has content to draw. | 212 // Returns true if this layer has content to draw. |
| 212 void SetDrawsContent(bool draws_content); | 213 void SetDrawsContent(bool draws_content); |
| 213 bool DrawsContent() const { return draws_content_; } | 214 bool DrawsContent() const { return draws_content_; } |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 DrawProperties<LayerImpl> draw_properties_; | 705 DrawProperties<LayerImpl> draw_properties_; |
| 705 | 706 |
| 706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 707 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 707 | 708 |
| 708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 709 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 709 }; | 710 }; |
| 710 | 711 |
| 711 } // namespace cc | 712 } // namespace cc |
| 712 | 713 |
| 713 #endif // CC_LAYERS_LAYER_IMPL_H_ | 714 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |