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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 370513002: Mac ÜC: Make resize smooth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_uc_for_reals
Patch Set: Add comments Created 6 years, 5 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: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 017438daf51cd4abd2fbc6bede5a3c87cb67894d..36f75dee03513667cb3af7845ef15034d01f0081 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1427,6 +1427,12 @@ void RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwapped(
if (!ui::LatencyInfo::Verify(params.latency_info,
"ViewHostMsg_CompositorSurfaceBuffersSwapped"))
return;
+
+ if (params.use_native_widget) {
+ RenderWidgetHelper::OnNativeSurfaceBuffersSwappedOnUIThread(params);
+ return;
+ }
+
if (!view_) {
AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
ack_params.sync_point = 0;
« no previous file with comments | « content/browser/renderer_host/render_widget_helper_mac.mm ('k') | content/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698