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 17 matching lines...) Expand all Loading... | |
28 return picture_layer_inputs_.nearest_neighbor; | 28 return picture_layer_inputs_.nearest_neighbor; |
29 } | 29 } |
30 | 30 |
31 // Layer interface. | 31 // Layer interface. |
32 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 32 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
33 void SetLayerTreeHost(LayerTreeHost* host) override; | 33 void SetLayerTreeHost(LayerTreeHost* host) override; |
34 void PushPropertiesTo(LayerImpl* layer) override; | 34 void PushPropertiesTo(LayerImpl* layer) override; |
35 void SetNeedsDisplayRect(const gfx::Rect& layer_rect) override; | 35 void SetNeedsDisplayRect(const gfx::Rect& layer_rect) override; |
36 bool Update() override; | 36 bool Update() override; |
37 void SetIsMask(bool is_mask) override; | 37 void SetIsMask(bool is_mask) override; |
38 sk_sp<SkPicture> GetPicture() const override; | 38 sk_sp<PaintRecord> GetPicture() const override; |
vmpstr
2017/01/21 01:11:31
nit: Need to rename GetPicture as well, (or at lea
| |
39 | 39 |
40 void SetTypeForProtoSerialization(proto::LayerNode* proto) const override; | 40 void SetTypeForProtoSerialization(proto::LayerNode* proto) const override; |
41 void ToLayerPropertiesProto(proto::LayerProperties* proto) override; | 41 void ToLayerPropertiesProto(proto::LayerProperties* proto) override; |
42 | 42 |
43 bool IsSuitableForGpuRasterization() const override; | 43 bool IsSuitableForGpuRasterization() const override; |
44 | 44 |
45 void RunMicroBenchmark(MicroBenchmark* benchmark) override; | 45 void RunMicroBenchmark(MicroBenchmark* benchmark) override; |
46 | 46 |
47 ContentLayerClient* client() { return picture_layer_inputs_.client; } | 47 ContentLayerClient* client() { return picture_layer_inputs_.client; } |
48 | 48 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 | 90 |
91 int update_source_frame_number_; | 91 int update_source_frame_number_; |
92 bool is_mask_; | 92 bool is_mask_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(PictureLayer); | 94 DISALLOW_COPY_AND_ASSIGN(PictureLayer); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace cc | 97 } // namespace cc |
98 | 98 |
99 #endif // CC_LAYERS_PICTURE_LAYER_H_ | 99 #endif // CC_LAYERS_PICTURE_LAYER_H_ |
OLD | NEW |