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 PictureLayerImpl; | |
27 struct CC_EXPORT PairedPictureLayer { | |
28 PairedPictureLayer(); | |
29 ~PairedPictureLayer(); | |
30 | |
31 PictureLayerImpl* active_layer; | |
32 PictureLayerImpl* pending_layer; | |
reveman
2014/07/18 21:08:04
nit: don't think _layer suffix is necessary.
vmpstr
2014/07/18 23:18:12
Done.
| |
33 }; | |
reveman
2014/07/18 21:08:04
How about PictureLayerImpl::Pair? or simply std::p
vmpstr
2014/07/18 23:18:12
Done. I prefer PictureLayerImpl::Pair so we have e
| |
34 | |
26 class CC_EXPORT PictureLayerImpl | 35 class CC_EXPORT PictureLayerImpl |
27 : public LayerImpl, | 36 : public LayerImpl, |
28 NON_EXPORTED_BASE(public PictureLayerTilingClient) { | 37 NON_EXPORTED_BASE(public PictureLayerTilingClient) { |
29 public: | 38 public: |
30 class CC_EXPORT LayerRasterTileIterator { | 39 class CC_EXPORT LayerRasterTileIterator { |
31 public: | 40 public: |
32 LayerRasterTileIterator(); | 41 LayerRasterTileIterator(); |
33 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res); | 42 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res); |
34 ~LayerRasterTileIterator(); | 43 ~LayerRasterTileIterator(); |
35 | 44 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
206 gfx::Size viewport_size_for_tile_priority_; | 215 gfx::Size viewport_size_for_tile_priority_; |
207 gfx::Transform screen_space_transform_for_tile_priority_; | 216 gfx::Transform screen_space_transform_for_tile_priority_; |
208 | 217 |
209 friend class PictureLayer; | 218 friend class PictureLayer; |
210 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 219 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
211 }; | 220 }; |
212 | 221 |
213 } // namespace cc | 222 } // namespace cc |
214 | 223 |
215 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 224 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |