Chromium Code Reviews| 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" | 27 #include "cc/quads/render_pass.h" |
|
danakj
2014/08/20 23:54:08
can be forward declared now instead?
weiliangc
2014/08/21 17:17:54
Done.
| |
| 28 #include "cc/quads/shared_quad_state.h" | 28 #include "cc/quads/shared_quad_state.h" |
| 29 #include "cc/resources/resource_provider.h" | 29 #include "cc/resources/resource_provider.h" |
| 30 #include "skia/ext/refptr.h" | 30 #include "skia/ext/refptr.h" |
| 31 #include "third_party/skia/include/core/SkColor.h" | 31 #include "third_party/skia/include/core/SkColor.h" |
| 32 #include "third_party/skia/include/core/SkImageFilter.h" | 32 #include "third_party/skia/include/core/SkImageFilter.h" |
| 33 #include "third_party/skia/include/core/SkPicture.h" | 33 #include "third_party/skia/include/core/SkPicture.h" |
| 34 #include "ui/gfx/point3_f.h" | 34 #include "ui/gfx/point3_f.h" |
| 35 #include "ui/gfx/rect.h" | 35 #include "ui/gfx/rect.h" |
| 36 #include "ui/gfx/rect_f.h" | 36 #include "ui/gfx/rect_f.h" |
| 37 #include "ui/gfx/transform.h" | 37 #include "ui/gfx/transform.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 ResourceProvider* resource_provider); | 192 ResourceProvider* resource_provider); |
| 193 virtual void AppendQuads(RenderPass* render_pass, | 193 virtual void AppendQuads(RenderPass* render_pass, |
| 194 const OcclusionTracker<LayerImpl>& occlusion_tracker, | 194 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
| 195 AppendQuadsData* append_quads_data) {} | 195 AppendQuadsData* append_quads_data) {} |
| 196 virtual void DidDraw(ResourceProvider* resource_provider); | 196 virtual void DidDraw(ResourceProvider* resource_provider); |
| 197 | 197 |
| 198 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 198 virtual ResourceProvider::ResourceId ContentsResourceId() const; |
| 199 | 199 |
| 200 virtual bool HasDelegatedContent() const; | 200 virtual bool HasDelegatedContent() const; |
| 201 virtual bool HasContributingDelegatedRenderPasses() const; | 201 virtual bool HasContributingDelegatedRenderPasses() const; |
| 202 virtual RenderPass::Id FirstContributingRenderPassId() const; | 202 virtual RenderPassId FirstContributingRenderPassId() const; |
| 203 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; | 203 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
| 204 | 204 |
| 205 virtual void UpdateTiles( | 205 virtual void UpdateTiles( |
| 206 const OcclusionTracker<LayerImpl>* occlusion_tracker) {} | 206 const OcclusionTracker<LayerImpl>* occlusion_tracker) {} |
| 207 virtual void NotifyTileStateChanged(const Tile* tile) {} | 207 virtual void NotifyTileStateChanged(const Tile* tile) {} |
| 208 | 208 |
| 209 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 209 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
| 210 | 210 |
| 211 // Returns true if this layer has content to draw. | 211 // Returns true if this layer has content to draw. |
| 212 void SetDrawsContent(bool draws_content); | 212 void SetDrawsContent(bool draws_content); |
| 213 bool DrawsContent() const { return draws_content_; } | 213 bool DrawsContent() const { return draws_content_; } |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 704 DrawProperties<LayerImpl> draw_properties_; | 704 DrawProperties<LayerImpl> draw_properties_; |
| 705 | 705 |
| 706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 707 | 707 |
| 708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 709 }; | 709 }; |
| 710 | 710 |
| 711 } // namespace cc | 711 } // namespace cc |
| 712 | 712 |
| 713 #endif // CC_LAYERS_LAYER_IMPL_H_ | 713 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |