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

Unified Diff: ui/android/delegated_frame_host_android.cc

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Address comments Created 3 years, 7 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
Index: ui/android/delegated_frame_host_android.cc
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc
index 2d9389e5063601dd8617d1bf18fd419c03ce2e30..3935dd5bd4fdd23dd0bdf34a6e59e1dcd40e5070 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -85,7 +85,10 @@ void DelegatedFrameHostAndroid::SubmitCompositorFrame(
cc::SurfaceId(frame_sink_id_, local_surface_id), 1.f, frame_size);
has_transparent_background_ = root_pass->has_transparent_background;
- support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
+ bool result =
+ support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
+ DCHECK(result);
+
content_layer_ = CreateSurfaceLayer(surface_manager_, surface_info_,
!has_transparent_background_);
view_->GetLayer()->AddChild(content_layer_);
« no previous file with comments | « content/renderer/android/synchronous_compositor_frame_sink.cc ('k') | ui/aura/local/compositor_frame_sink_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698