OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IMAGE_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ |
6 #define CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ | 6 #define CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "cc/layers/picture_layer_impl.h" | 9 #include "cc/layers/picture_layer_impl.h" |
9 | 10 |
10 namespace cc { | 11 namespace cc { |
11 | 12 |
12 class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl { | 13 class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl { |
13 public: | 14 public: |
14 static scoped_ptr<PictureImageLayerImpl> Create(LayerTreeImpl* tree_impl, | 15 static scoped_ptr<PictureImageLayerImpl> Create(LayerTreeImpl* tree_impl, |
15 int id, | 16 int id, |
16 bool is_mask) { | 17 bool is_mask) { |
17 return make_scoped_ptr(new PictureImageLayerImpl(tree_impl, id, is_mask)); | 18 return make_scoped_ptr(new PictureImageLayerImpl(tree_impl, id, is_mask)); |
(...skipping 13 matching lines...) Expand all Loading... |
31 | 32 |
32 void UpdateIdealScales() override; | 33 void UpdateIdealScales() override; |
33 | 34 |
34 private: | 35 private: |
35 DISALLOW_COPY_AND_ASSIGN(PictureImageLayerImpl); | 36 DISALLOW_COPY_AND_ASSIGN(PictureImageLayerImpl); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace cc | 39 } // namespace cc |
39 | 40 |
40 #endif // CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ | 41 #endif // CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ |
OLD | NEW |