| Index: cc/layers/surface_layer_impl.h
|
| diff --git a/cc/layers/surface_layer_impl.h b/cc/layers/surface_layer_impl.h
|
| index 70f600c3c817f347425678323e70a103c4d32842..22798cd7df88c0f0d81d13e37cf038a16742aade 100644
|
| --- a/cc/layers/surface_layer_impl.h
|
| +++ b/cc/layers/surface_layer_impl.h
|
| @@ -12,6 +12,7 @@
|
| #include "cc/base/cc_export.h"
|
| #include "cc/layers/layer_impl.h"
|
| #include "cc/surfaces/surface_id.h"
|
| +#include "cc/surfaces/surface_info.h"
|
|
|
| namespace cc {
|
|
|
| @@ -23,11 +24,9 @@ class CC_EXPORT SurfaceLayerImpl : public LayerImpl {
|
| }
|
| ~SurfaceLayerImpl() override;
|
|
|
| - void SetSurfaceId(const SurfaceId& surface_id);
|
| - void SetSurfaceScale(float scale);
|
| - void SetSurfaceSize(const gfx::Size& size);
|
| + void SetSurfaceInfo(const SurfaceInfo& surface_info);
|
| + const SurfaceInfo& surface_info() const { return surface_info_; }
|
| void SetStretchContentToFillBounds(bool stretch_content);
|
| - const SurfaceId& surface_id() const { return surface_id_; }
|
|
|
| // LayerImpl overrides.
|
| std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
|
| @@ -44,9 +43,7 @@ class CC_EXPORT SurfaceLayerImpl : public LayerImpl {
|
| void AsValueInto(base::trace_event::TracedValue* dict) const override;
|
| const char* LayerTypeAsString() const override;
|
|
|
| - SurfaceId surface_id_;
|
| - gfx::Size surface_size_;
|
| - float surface_scale_ = 0.f;
|
| + SurfaceInfo surface_info_;
|
| bool stretch_content_to_fill_bounds_ = false;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl);
|
|
|