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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 namespace cc { | 54 namespace cc { |
55 | 55 |
56 class LayerTreeHostImpl; | 56 class LayerTreeHostImpl; |
57 class LayerTreeImpl; | 57 class LayerTreeImpl; |
58 class MicroBenchmarkImpl; | 58 class MicroBenchmarkImpl; |
59 class Occlusion; | 59 class Occlusion; |
60 template <typename LayerType> | 60 template <typename LayerType> |
61 class OcclusionTracker; | 61 class OcclusionTracker; |
62 class OpacityTree; | 62 class OpacityTree; |
| 63 class PrioritizedTile; |
63 class RenderPass; | 64 class RenderPass; |
64 class RenderPassId; | 65 class RenderPassId; |
65 class Renderer; | 66 class Renderer; |
66 class ScrollbarAnimationController; | 67 class ScrollbarAnimationController; |
67 class ScrollbarLayerImplBase; | 68 class ScrollbarLayerImplBase; |
68 class SimpleEnclosedRegion; | 69 class SimpleEnclosedRegion; |
69 class Tile; | 70 class Tile; |
70 class TransformTree; | 71 class TransformTree; |
71 | 72 |
72 struct AppendQuadsData; | 73 struct AppendQuadsData; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0; | 598 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0; |
598 } | 599 } |
599 | 600 |
600 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; | 601 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; |
601 | 602 |
602 virtual skia::RefPtr<SkPicture> GetPicture(); | 603 virtual skia::RefPtr<SkPicture> GetPicture(); |
603 | 604 |
604 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); | 605 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); |
605 virtual void PushPropertiesTo(LayerImpl* layer); | 606 virtual void PushPropertiesTo(LayerImpl* layer); |
606 | 607 |
607 virtual void GetAllTilesAndPrioritiesForTracing( | 608 virtual void GetAllPrioritizedTilesForTracing( |
608 std::map<const Tile*, TilePriority>* tile_map) const; | 609 std::vector<PrioritizedTile>* prioritized_tiles) const; |
609 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; | 610 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; |
610 | 611 |
611 virtual size_t GPUMemoryUsageInBytes() const; | 612 virtual size_t GPUMemoryUsageInBytes() const; |
612 | 613 |
613 void SetNeedsPushProperties(); | 614 void SetNeedsPushProperties(); |
614 void AddDependentNeedsPushProperties(); | 615 void AddDependentNeedsPushProperties(); |
615 void RemoveDependentNeedsPushProperties(); | 616 void RemoveDependentNeedsPushProperties(); |
616 bool parent_should_know_need_push_properties() const { | 617 bool parent_should_know_need_push_properties() const { |
617 return needs_push_properties() || descendant_needs_push_properties(); | 618 return needs_push_properties() || descendant_needs_push_properties(); |
618 } | 619 } |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 | 830 |
830 std::vector<FrameTimingRequest> frame_timing_requests_; | 831 std::vector<FrameTimingRequest> frame_timing_requests_; |
831 bool frame_timing_requests_dirty_; | 832 bool frame_timing_requests_dirty_; |
832 | 833 |
833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 834 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
834 }; | 835 }; |
835 | 836 |
836 } // namespace cc | 837 } // namespace cc |
837 | 838 |
838 #endif // CC_LAYERS_LAYER_IMPL_H_ | 839 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |