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

Unified Diff: cc/layers/surface_layer_impl.h

Issue 1166983007: Fix SurfaceLayerImpl scale under impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows compile fix OOPS Created 5 years, 6 months 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 90c0f4565c68d04a207e58f660658048fc7c3d84..b190b3af94088d432587a828998f9d1e639c00d6 100644
--- a/cc/layers/surface_layer_impl.h
+++ b/cc/layers/surface_layer_impl.h
@@ -20,6 +20,8 @@ class CC_EXPORT SurfaceLayerImpl : public LayerImpl {
~SurfaceLayerImpl() override;
void SetSurfaceId(SurfaceId surface_id);
+ void SetSurfaceScale(float scale);
+ void SetSurfaceSize(const gfx::Size& size);
// LayerImpl overrides.
scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
@@ -36,6 +38,8 @@ class CC_EXPORT SurfaceLayerImpl : public LayerImpl {
const char* LayerTypeAsString() const override;
SurfaceId surface_id_;
+ gfx::Size surface_size_;
+ float surface_scale_;
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