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

Unified Diff: cc/layers/surface_layer.h

Issue 2621653002: Remove stretch_content_to_fill_bounds from cc::SurfaceLayer::SetSurfaceInfo (Closed)
Patch Set: up Created 3 years, 11 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 | « blimp/client/core/compositor/blimp_compositor.cc ('k') | cc/layers/surface_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/surface_layer.h
diff --git a/cc/layers/surface_layer.h b/cc/layers/surface_layer.h
index a7b16abdac0f603b7fecf1e7ee28046ee666b57e..ac0da3d4af0b5ff1e0fbd319b67eee65e5bc084b 100644
--- a/cc/layers/surface_layer.h
+++ b/cc/layers/surface_layer.h
@@ -24,9 +24,11 @@ class CC_EXPORT SurfaceLayer : public Layer {
static scoped_refptr<SurfaceLayer> Create(
scoped_refptr<SurfaceReferenceFactory> ref_factory);
- // When stretch_content_to_fill_bounds is true, scale is unused.
- void SetSurfaceInfo(const SurfaceInfo& surface_info,
- bool stretch_content_to_fill_bounds);
+ void SetSurfaceInfo(const SurfaceInfo& surface_info);
+
+ // When stretch_content_to_fill_bounds is true, the scale of the embedded
+ // surface is ignored and the content will be stretched to fill the bounds.
+ void SetStretchContentToFillBounds(bool stretch_content_to_fill_bounds);
// Layer overrides.
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
« no previous file with comments | « blimp/client/core/compositor/blimp_compositor.cc ('k') | cc/layers/surface_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698