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_H_ | 5 #ifndef CC_LAYERS_PICTURE_LAYER_H_ |
6 #define CC_LAYERS_PICTURE_LAYER_H_ | 6 #define CC_LAYERS_PICTURE_LAYER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "cc/base/invalidation_region.h" | 9 #include "cc/base/invalidation_region.h" |
10 #include "cc/debug/devtools_instrumentation.h" | 10 #include "cc/debug/devtools_instrumentation.h" |
11 #include "cc/debug/micro_benchmark_controller.h" | 11 #include "cc/debug/micro_benchmark_controller.h" |
12 #include "cc/layers/layer.h" | 12 #include "cc/layers/layer.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 namespace proto { | |
17 class PictureLayerProperties; | |
18 } | |
19 | |
20 class ContentLayerClient; | 16 class ContentLayerClient; |
21 class DisplayItemList; | 17 class DisplayItemList; |
22 class RecordingSource; | 18 class RecordingSource; |
23 class ResourceUpdateQueue; | |
24 | 19 |
25 class CC_EXPORT PictureLayer : public Layer { | 20 class CC_EXPORT PictureLayer : public Layer { |
26 public: | 21 public: |
27 static scoped_refptr<PictureLayer> Create(ContentLayerClient* client); | 22 static scoped_refptr<PictureLayer> Create(ContentLayerClient* client); |
28 | 23 |
29 void ClearClient(); | 24 void ClearClient(); |
30 | 25 |
31 void SetNearestNeighbor(bool nearest_neighbor); | 26 void SetNearestNeighbor(bool nearest_neighbor); |
32 bool nearest_neighbor() const { | 27 bool nearest_neighbor() const { |
33 return picture_layer_inputs_.nearest_neighbor; | 28 return picture_layer_inputs_.nearest_neighbor; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 90 |
96 int update_source_frame_number_; | 91 int update_source_frame_number_; |
97 bool is_mask_; | 92 bool is_mask_; |
98 | 93 |
99 DISALLOW_COPY_AND_ASSIGN(PictureLayer); | 94 DISALLOW_COPY_AND_ASSIGN(PictureLayer); |
100 }; | 95 }; |
101 | 96 |
102 } // namespace cc | 97 } // namespace cc |
103 | 98 |
104 #endif // CC_LAYERS_PICTURE_LAYER_H_ | 99 #endif // CC_LAYERS_PICTURE_LAYER_H_ |
OLD | NEW |