| 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_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_PICTURE_LAYER_IMPL_H_ |
| 6 #define CC_PICTURE_LAYER_IMPL_H_ | 6 #define CC_PICTURE_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/layer_impl.h" | 8 #include "cc/layer_impl.h" |
| 9 #include "cc/picture_layer_tiling.h" | 9 #include "cc/picture_layer_tiling.h" |
| 10 #include "cc/picture_layer_tiling_set.h" | 10 #include "cc/picture_layer_tiling_set.h" |
| 11 #include "cc/picture_pile_impl.h" | 11 #include "cc/picture_pile_impl.h" |
| 12 #include "cc/scoped_ptr_vector.h" | 12 #include "cc/scoped_ptr_vector.h" |
| 13 #include "skia/ext/refptr.h" | 13 #include "skia/ext/refptr.h" |
| 14 #include "third_party/skia/include/core/SkPicture.h" | 14 #include "third_party/skia/include/core/SkPicture.h" |
| 15 | 15 |
| 16 namespace cc { | 16 namespace cc { |
| 17 | 17 |
| 18 struct AppendQuadsData; | 18 struct AppendQuadsData; |
| 19 class QuadSink; | 19 class QuadSink; |
| 20 | 20 |
| 21 class CC_EXPORT PictureLayerImpl | 21 class CC_EXPORT PictureLayerImpl : public LayerImpl, |
| 22 : public LayerImpl, | 22 public PictureLayerTilingClient { |
| 23 public NON_EXPORTED_BASE(PictureLayerTilingClient) { | |
| 24 public: | 23 public: |
| 25 static scoped_ptr<PictureLayerImpl> create(LayerTreeImpl* treeImpl, int id) | 24 static scoped_ptr<PictureLayerImpl> create(LayerTreeImpl* treeImpl, int id) |
| 26 { | 25 { |
| 27 return make_scoped_ptr(new PictureLayerImpl(treeImpl, id)); | 26 return make_scoped_ptr(new PictureLayerImpl(treeImpl, id)); |
| 28 } | 27 } |
| 29 virtual ~PictureLayerImpl(); | 28 virtual ~PictureLayerImpl(); |
| 30 | 29 |
| 31 // LayerImpl overrides. | 30 // LayerImpl overrides. |
| 32 virtual const char* layerTypeAsString() const OVERRIDE; | 31 virtual const char* layerTypeAsString() const OVERRIDE; |
| 33 virtual scoped_ptr<LayerImpl> createLayerImpl( | 32 virtual scoped_ptr<LayerImpl> createLayerImpl( |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 float raster_source_scale_; | 102 float raster_source_scale_; |
| 104 bool raster_source_scale_was_animating_; | 103 bool raster_source_scale_was_animating_; |
| 105 | 104 |
| 106 friend class PictureLayer; | 105 friend class PictureLayer; |
| 107 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 106 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 } | 109 } |
| 111 | 110 |
| 112 #endif // CC_PICTURE_LAYER_IMPL_H_ | 111 #endif // CC_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |