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

Side by Side Diff: content/browser/renderer_host/render_message_filter.cc

Issue 9980016: Delete background tab IOSurfaces on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed auto-resize and fullscreen toggle Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_message_filter.h" 5 #include "content/browser/renderer_host/render_message_filter.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_GetPlugins, OnGetPlugins) 354 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_GetPlugins, OnGetPlugins)
355 IPC_MESSAGE_HANDLER(ViewHostMsg_GetPluginInfo, OnGetPluginInfo) 355 IPC_MESSAGE_HANDLER(ViewHostMsg_GetPluginInfo, OnGetPluginInfo)
356 IPC_MESSAGE_HANDLER(ViewHostMsg_DownloadUrl, OnDownloadUrl) 356 IPC_MESSAGE_HANDLER(ViewHostMsg_DownloadUrl, OnDownloadUrl)
357 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_OpenChannelToPlugin, 357 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_OpenChannelToPlugin,
358 OnOpenChannelToPlugin) 358 OnOpenChannelToPlugin)
359 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_OpenChannelToPepperPlugin, 359 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_OpenChannelToPepperPlugin,
360 OnOpenChannelToPepperPlugin) 360 OnOpenChannelToPepperPlugin)
361 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenChannelToPpapiBroker, 361 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenChannelToPpapiBroker,
362 OnOpenChannelToPpapiBroker) 362 OnOpenChannelToPpapiBroker)
363 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_UpdateRect, 363 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_UpdateRect,
364 render_widget_helper_->DidReceiveUpdateMsg(message)) 364 render_widget_helper_->DidReceiveBackingStoreMsg(message))
365 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateIsDelayed, OnUpdateIsDelayed) 365 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateIsDelayed, OnUpdateIsDelayed)
366 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_CheckPermission, 366 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_CheckPermission,
367 OnCheckNotificationPermission) 367 OnCheckNotificationPermission)
368 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_SyncAllocateSharedMemory, 368 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_SyncAllocateSharedMemory,
369 OnAllocateSharedMemory) 369 OnAllocateSharedMemory)
370 #if defined(OS_MACOSX) 370 #if defined(OS_MACOSX)
371 IPC_MESSAGE_HANDLER(ViewHostMsg_AllocTransportDIB, OnAllocTransportDIB) 371 IPC_MESSAGE_HANDLER(ViewHostMsg_AllocTransportDIB, OnAllocTransportDIB)
372 IPC_MESSAGE_HANDLER(ViewHostMsg_FreeTransportDIB, OnFreeTransportDIB) 372 IPC_MESSAGE_HANDLER(ViewHostMsg_FreeTransportDIB, OnFreeTransportDIB)
373 #endif 373 #endif
374 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGenerateCacheableMetadata, 374 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGenerateCacheableMetadata,
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 void RenderMessageFilter::OnUpdateIsDelayed(const IPC::Message& msg) { 941 void RenderMessageFilter::OnUpdateIsDelayed(const IPC::Message& msg) {
942 // When not in accelerated compositing mode, in certain cases (e.g. waiting 942 // When not in accelerated compositing mode, in certain cases (e.g. waiting
943 // for a resize or if no backing store) the RenderWidgetHost is blocking the 943 // for a resize or if no backing store) the RenderWidgetHost is blocking the
944 // UI thread for some time, waiting for an UpdateRect from the renderer. If we 944 // UI thread for some time, waiting for an UpdateRect from the renderer. If we
945 // are going to switch to accelerated compositing, the GPU process may need 945 // are going to switch to accelerated compositing, the GPU process may need
946 // round-trips to the UI thread before finishing the frame, causing deadlocks 946 // round-trips to the UI thread before finishing the frame, causing deadlocks
947 // if we delay the UpdateRect until we receive the OnSwapBuffersComplete. So 947 // if we delay the UpdateRect until we receive the OnSwapBuffersComplete. So
948 // the renderer sent us this message, so that we can unblock the UI thread. 948 // the renderer sent us this message, so that we can unblock the UI thread.
949 // We will simply re-use the UpdateRect unblock mechanism, just with a 949 // We will simply re-use the UpdateRect unblock mechanism, just with a
950 // different message. 950 // different message.
951 render_widget_helper_->DidReceiveUpdateMsg(msg); 951 render_widget_helper_->DidReceiveBackingStoreMsg(msg);
952 } 952 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositing_iosurface_mac.mm ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698