OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id)); | 100 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id)); |
101 } | 101 } |
102 virtual ~PictureLayerImpl(); | 102 virtual ~PictureLayerImpl(); |
103 | 103 |
104 // LayerImpl overrides. | 104 // LayerImpl overrides. |
105 virtual const char* LayerTypeAsString() const override; | 105 virtual const char* LayerTypeAsString() const override; |
106 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 106 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
107 override; | 107 override; |
108 virtual void PushPropertiesTo(LayerImpl* layer) override; | 108 virtual void PushPropertiesTo(LayerImpl* layer) override; |
109 virtual void AppendQuads(RenderPass* render_pass, | 109 virtual void AppendQuads(RenderPass* render_pass, |
110 const OcclusionTracker<LayerImpl>& occlusion_tracker, | 110 const Occlusion& occlusion_in_content_space, |
111 AppendQuadsData* append_quads_data) override; | 111 AppendQuadsData* append_quads_data) override; |
112 virtual void UpdateTiles(const Occlusion& occlusion_in_content_space, | 112 virtual void UpdateTiles(const Occlusion& occlusion_in_content_space, |
113 bool resourceless_software_draw) override; | 113 bool resourceless_software_draw) override; |
114 virtual void NotifyTileStateChanged(const Tile* tile) override; | 114 virtual void NotifyTileStateChanged(const Tile* tile) override; |
115 virtual void DidBecomeActive() override; | 115 virtual void DidBecomeActive() override; |
116 virtual void DidBeginTracing() override; | 116 virtual void DidBeginTracing() override; |
117 virtual void ReleaseResources() override; | 117 virtual void ReleaseResources() override; |
118 virtual skia::RefPtr<SkPicture> GetPicture() override; | 118 virtual skia::RefPtr<SkPicture> GetPicture() override; |
119 | 119 |
120 // PictureLayerTilingClient overrides. | 120 // PictureLayerTilingClient overrides. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 gfx::Rect viewport_rect_for_tile_priority_; | 228 gfx::Rect viewport_rect_for_tile_priority_; |
229 gfx::Transform screen_space_transform_for_tile_priority_; | 229 gfx::Transform screen_space_transform_for_tile_priority_; |
230 | 230 |
231 friend class PictureLayer; | 231 friend class PictureLayer; |
232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
233 }; | 233 }; |
234 | 234 |
235 } // namespace cc | 235 } // namespace cc |
236 | 236 |
237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |