Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3151)

Unified Diff: cc/layers/surface_layer_impl.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/surface_layer.cc ('k') | cc/layers/surface_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « cc/layers/surface_layer.cc ('k') | cc/layers/surface_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698