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.
5 #ifndef CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_
8 #include "cc/layers/picture_layer_impl.h"
12 class CC_EXPORT PictureImageLayerImpl
: public PictureLayerImpl
{
14 static scoped_ptr
<PictureImageLayerImpl
> Create(LayerTreeImpl
* tree_impl
,
17 return make_scoped_ptr(new PictureImageLayerImpl(tree_impl
, id
, is_mask
));
19 ~PictureImageLayerImpl() override
;
21 // LayerImpl overrides.
22 const char* LayerTypeAsString() const override
;
23 scoped_ptr
<LayerImpl
> CreateLayerImpl(LayerTreeImpl
* tree_impl
) override
;
26 PictureImageLayerImpl(LayerTreeImpl
* tree_impl
, int id
, bool is_mask
);
28 bool ShouldAdjustRasterScale() const override
;
29 void RecalculateRasterScales() override
;
30 void GetDebugBorderProperties(SkColor
* color
, float* width
) const override
;
32 void UpdateIdealScales() override
;
35 DISALLOW_COPY_AND_ASSIGN(PictureImageLayerImpl
);
40 #endif // CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_