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

Unified Diff: trunk/src/content/browser/renderer_host/render_process_host_impl.cc

Issue 387863004: Revert 281866 "Mac ÜC: Make resize smooth" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/content/browser/renderer_host/render_process_host_impl.cc
===================================================================
--- trunk/src/content/browser/renderer_host/render_process_host_impl.cc (revision 282673)
+++ trunk/src/content/browser/renderer_host/render_process_host_impl.cc (working copy)
@@ -1406,14 +1406,12 @@
Send(reply);
}
-#if defined(OS_MACOSX)
// If this is a SwapBuffers, we need to ack it if we're not going to handle
// it so that the GPU process doesn't get stuck in unscheduled state.
IPC_BEGIN_MESSAGE_MAP(RenderProcessHostImpl, msg)
IPC_MESSAGE_HANDLER(ViewHostMsg_CompositorSurfaceBuffersSwapped,
OnCompositorSurfaceBuffersSwappedNoHost)
IPC_END_MESSAGE_MAP()
-#endif
return true;
}
return listener->OnMessageReceived(msg);
@@ -2144,7 +2142,6 @@
MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size);
}
-#if defined(OS_MACOSX)
void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost(
const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params) {
TRACE_EVENT0("renderer_host",
@@ -2152,19 +2149,12 @@
if (!ui::LatencyInfo::Verify(params.latency_info,
"ViewHostMsg_CompositorSurfaceBuffersSwapped"))
return;
-
- if (params.use_native_widget) {
- RenderWidgetHelper::OnNativeSurfaceBuffersSwappedOnUIThread(params);
- return;
- }
-
AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
ack_params.sync_point = 0;
RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id,
params.gpu_process_host_id,
ack_params);
}
-#endif
void RenderProcessHostImpl::OnGpuSwitching() {
// We are updating all widgets including swapped out ones.

Powered by Google App Engine
This is Rietveld 408576698