| 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(); |
| 32 Pair(PictureLayerImpl* active_layer, PictureLayerImpl* pending_layer); |
| 33 ~Pair(); |
| 34 |
| 35 PictureLayerImpl* active; |
| 36 PictureLayerImpl* pending; |
| 37 }; |
| 38 |
| 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 |
| 36 Tile* operator*(); | 45 Tile* operator*(); |
| 37 LayerRasterTileIterator& operator++(); | 46 LayerRasterTileIterator& operator++(); |
| 38 operator bool() const; | 47 operator bool() const; |
| 39 | 48 |
| (...skipping 166 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 |