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 MicroBenchmarkImpl; | 23 class MicroBenchmarkImpl; |
24 class Tile; | 24 class Tile; |
25 | 25 |
26 class CC_EXPORT PictureLayerImpl | 26 class CC_EXPORT PictureLayerImpl |
27 : public LayerImpl, | 27 : public LayerImpl, |
28 NON_EXPORTED_BASE(public PictureLayerTilingClient) { | 28 NON_EXPORTED_BASE(public PictureLayerTilingClient) { |
29 public: | 29 public: |
30 struct CC_EXPORT Pair { | |
31 Pair(); | |
reveman
2014/07/19 00:45:50
I think adding a ctor that takes 2 layers as input
vmpstr
2014/07/20 01:15:04
Done.
| |
32 ~Pair(); | |
33 | |
34 PictureLayerImpl* active; | |
35 PictureLayerImpl* pending; | |
36 }; | |
37 | |
30 class CC_EXPORT LayerRasterTileIterator { | 38 class CC_EXPORT LayerRasterTileIterator { |
31 public: | 39 public: |
32 LayerRasterTileIterator(); | 40 LayerRasterTileIterator(); |
33 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res); | 41 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res); |
34 ~LayerRasterTileIterator(); | 42 ~LayerRasterTileIterator(); |
35 | 43 |
36 Tile* operator*(); | 44 Tile* operator*(); |
37 LayerRasterTileIterator& operator++(); | 45 LayerRasterTileIterator& operator++(); |
38 operator bool() const; | 46 operator bool() const; |
39 | 47 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
206 gfx::Size viewport_size_for_tile_priority_; | 214 gfx::Size viewport_size_for_tile_priority_; |
207 gfx::Transform screen_space_transform_for_tile_priority_; | 215 gfx::Transform screen_space_transform_for_tile_priority_; |
208 | 216 |
209 friend class PictureLayer; | 217 friend class PictureLayer; |
210 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 218 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
211 }; | 219 }; |
212 | 220 |
213 } // namespace cc | 221 } // namespace cc |
214 | 222 |
215 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 223 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |