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

Unified Diff: cc/layers/surface_layer_impl.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: up 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
Index: cc/layers/surface_layer_impl.h
diff --git a/cc/layers/surface_layer_impl.h b/cc/layers/surface_layer_impl.h
index e5d4128bc161f7a7a2bc9f6e4c9ad391c21da183..36d39d98367ffb4b3b56e1b1aa681840fab91513 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,10 +24,8 @@ class CC_EXPORT SurfaceLayerImpl : public LayerImpl {
}
~SurfaceLayerImpl() override;
- void SetSurfaceId(const SurfaceId& surface_id);
- void SetSurfaceScale(float scale);
- void SetSurfaceSize(const gfx::Size& size);
- const SurfaceId& surface_id() const { return surface_id_; }
+ void SetSurfaceInfo(const SurfaceInfo& surface_info);
+ const SurfaceInfo& surface_info() const { return surface_info_; }
// LayerImpl overrides.
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
@@ -43,9 +42,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_;
+ SurfaceInfo surface_info_;
DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698