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

Unified Diff: ui/compositor/layer.cc

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: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index a29bf600bcb9f980b5b5a8f5e85f333f3bafb1c2..ad04a6441759dfa7c3461e19a3b9967d16528cc3 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -665,7 +665,8 @@ void Layer::SetShowSurface(
scoped_refptr<cc::SurfaceLayer> new_layer =
cc::SurfaceLayer::Create(satisfy_callback, require_callback);
- new_layer->SetSurfaceId(surface_id, scale, surface_size_in_pixels);
+ new_layer->SetSurfaceId(surface_id, scale, surface_size_in_pixels,
+ false /* stretch_content_to_fill_bounds */);
SwitchToLayer(new_layer);
surface_layer_ = new_layer;
« ui/android/delegated_frame_host_android.cc ('K') | « ui/android/delegated_frame_host_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698