| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ | |
| 6 #define CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/ptr_util.h" | |
| 10 #include "cc/layers/picture_layer_impl.h" | |
| 11 | |
| 12 namespace cc { | |
| 13 | |
| 14 class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl { | |
| 15 public: | |
| 16 static std::unique_ptr<PictureImageLayerImpl> Create(LayerTreeImpl* tree_impl, | |
| 17 int id, | |
| 18 bool is_mask) { | |
| 19 return base::WrapUnique(new PictureImageLayerImpl(tree_impl, id, is_mask)); | |
| 20 } | |
| 21 ~PictureImageLayerImpl() override; | |
| 22 | |
| 23 // LayerImpl overrides. | |
| 24 const char* LayerTypeAsString() const override; | |
| 25 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | |
| 26 | |
| 27 protected: | |
| 28 PictureImageLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask); | |
| 29 | |
| 30 bool ShouldAdjustRasterScale() const override; | |
| 31 void RecalculateRasterScales() override; | |
| 32 void GetDebugBorderProperties(SkColor* color, float* width) const override; | |
| 33 | |
| 34 void UpdateIdealScales() override; | |
| 35 | |
| 36 private: | |
| 37 DISALLOW_COPY_AND_ASSIGN(PictureImageLayerImpl); | |
| 38 }; | |
| 39 | |
| 40 } // namespace cc | |
| 41 | |
| 42 #endif // CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_ | |
| OLD | NEW |