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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "cc/base/scoped_ptr_vector.h" | 12 #include "cc/base/scoped_ptr_vector.h" |
13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
14 #include "cc/resources/picture_layer_tiling.h" | 14 #include "cc/resources/picture_layer_tiling.h" |
15 #include "cc/resources/picture_layer_tiling_set.h" | 15 #include "cc/resources/picture_layer_tiling_set.h" |
16 #include "cc/resources/picture_pile_impl.h" | 16 #include "cc/resources/picture_pile_impl.h" |
17 #include "skia/ext/refptr.h" | 17 #include "skia/ext/refptr.h" |
18 #include "third_party/skia/include/core/SkPicture.h" | 18 #include "third_party/skia/include/core/SkPicture.h" |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 struct AppendQuadsData; | 22 struct AppendQuadsData; |
23 class QuadSink; | |
24 class MicroBenchmarkImpl; | 23 class MicroBenchmarkImpl; |
25 class Tile; | 24 class Tile; |
26 | 25 |
27 class CC_EXPORT PictureLayerImpl | 26 class CC_EXPORT PictureLayerImpl |
28 : public LayerImpl, | 27 : public LayerImpl, |
29 NON_EXPORTED_BASE(public PictureLayerTilingClient) { | 28 NON_EXPORTED_BASE(public PictureLayerTilingClient) { |
30 public: | 29 public: |
31 class CC_EXPORT LayerRasterTileIterator { | 30 class CC_EXPORT LayerRasterTileIterator { |
32 public: | 31 public: |
33 LayerRasterTileIterator(); | 32 LayerRasterTileIterator(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) { | 81 static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) { |
83 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id)); | 82 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id)); |
84 } | 83 } |
85 virtual ~PictureLayerImpl(); | 84 virtual ~PictureLayerImpl(); |
86 | 85 |
87 // LayerImpl overrides. | 86 // LayerImpl overrides. |
88 virtual const char* LayerTypeAsString() const OVERRIDE; | 87 virtual const char* LayerTypeAsString() const OVERRIDE; |
89 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 88 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
90 OVERRIDE; | 89 OVERRIDE; |
91 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 90 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
92 virtual void AppendQuads(QuadSink* quad_sink, | 91 virtual void AppendQuads(RenderPass* render_pass, |
| 92 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
93 AppendQuadsData* append_quads_data) OVERRIDE; | 93 AppendQuadsData* append_quads_data) OVERRIDE; |
94 virtual void UpdateTiles() OVERRIDE; | 94 virtual void UpdateTiles() OVERRIDE; |
95 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; | 95 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; |
96 virtual void DidBecomeActive() OVERRIDE; | 96 virtual void DidBecomeActive() OVERRIDE; |
97 virtual void DidBeginTracing() OVERRIDE; | 97 virtual void DidBeginTracing() OVERRIDE; |
98 virtual void ReleaseResources() OVERRIDE; | 98 virtual void ReleaseResources() OVERRIDE; |
99 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; | 99 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; |
100 | 100 |
101 // PictureLayerTilingClient overrides. | 101 // PictureLayerTilingClient overrides. |
102 virtual scoped_refptr<Tile> CreateTile( | 102 virtual scoped_refptr<Tile> CreateTile( |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 gfx::Size viewport_size_for_tile_priority_; | 204 gfx::Size viewport_size_for_tile_priority_; |
205 gfx::Transform screen_space_transform_for_tile_priority_; | 205 gfx::Transform screen_space_transform_for_tile_priority_; |
206 | 206 |
207 friend class PictureLayer; | 207 friend class PictureLayer; |
208 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 208 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
209 }; | 209 }; |
210 | 210 |
211 } // namespace cc | 211 } // namespace cc |
212 | 212 |
213 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 213 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |