Chromium Code Reviews| 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" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 void FromLayerSpecificPropertiesProto( | 56 void FromLayerSpecificPropertiesProto( |
| 57 const proto::LayerProperties& proto) override; | 57 const proto::LayerProperties& proto) override; |
| 58 | 58 |
| 59 bool is_mask() const { return is_mask_; } | 59 bool is_mask() const { return is_mask_; } |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 friend class TestSerializationPictureLayer; | 62 friend class TestSerializationPictureLayer; |
| 63 | 63 |
| 64 void DropRecordingSourceContentIfInvalid(); | 64 void DropRecordingSourceContentIfInvalid(); |
| 65 | 65 |
| 66 ContentLayerClient* client_; | 66 ContentLayerClient* client_; |
|
Khushal
2016/07/09 00:49:18
Could you move this in the struct too?
Menglin
2016/07/09 17:17:42
Sure. Is it because PictureLayer::Create(client) c
Khushal
2016/07/11 16:43:58
Yup, its an interface that is implemented by the e
| |
| 67 std::unique_ptr<RecordingSource> recording_source_; | 67 std::unique_ptr<RecordingSource> recording_source_; |
| 68 devtools_instrumentation:: | 68 devtools_instrumentation:: |
| 69 ScopedLayerObjectTracker instrumentation_object_tracker_; | 69 ScopedLayerObjectTracker instrumentation_object_tracker_; |
| 70 | 70 |
| 71 Region last_updated_invalidation_; | 71 Region last_updated_invalidation_; |
| 72 | 72 |
| 73 int update_source_frame_number_; | 73 int update_source_frame_number_; |
| 74 bool is_mask_; | 74 bool is_mask_; |
| 75 bool nearest_neighbor_; | 75 |
| 76 // Encapsulates all data, callbacks or interfaces received from the embedder. | |
| 77 struct Inputs { | |
| 78 Inputs(); | |
| 79 ~Inputs(); | |
| 80 | |
| 81 bool nearest_neighbor_; | |
|
Khushal
2016/07/11 16:43:58
nit: This should be |nearest_neighbor|. The unders
| |
| 82 }; | |
| 83 | |
| 84 Inputs inputs_; | |
| 76 | 85 |
| 77 DISALLOW_COPY_AND_ASSIGN(PictureLayer); | 86 DISALLOW_COPY_AND_ASSIGN(PictureLayer); |
| 78 }; | 87 }; |
| 79 | 88 |
| 80 } // namespace cc | 89 } // namespace cc |
| 81 | 90 |
| 82 #endif // CC_LAYERS_PICTURE_LAYER_H_ | 91 #endif // CC_LAYERS_PICTURE_LAYER_H_ |
| OLD | NEW |