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

Unified Diff: cc/layers/surface_layer_impl.h

Issue 2495373003: Match html canvas which is transferred to OffscreenCanvas to CSS style (Closed)
Patch Set: fix compilation error 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..70f600c3c817f347425678323e70a103c4d32842 100644
--- a/cc/layers/surface_layer_impl.h
+++ b/cc/layers/surface_layer_impl.h
@@ -26,6 +26,7 @@ class CC_EXPORT SurfaceLayerImpl : public LayerImpl {
void SetSurfaceId(const SurfaceId& surface_id);
void SetSurfaceScale(float scale);
void SetSurfaceSize(const gfx::Size& size);
+ void SetStretchContentToFillBounds(bool stretch_content);
const SurfaceId& surface_id() const { return surface_id_; }
// LayerImpl overrides.
@@ -45,7 +46,8 @@ class CC_EXPORT SurfaceLayerImpl : public LayerImpl {
SurfaceId surface_id_;
gfx::Size surface_size_;
- float surface_scale_;
+ float surface_scale_ = 0.f;
+ bool stretch_content_to_fill_bounds_ = false;
DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698