diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-22 03:20:21 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-22 03:20:21 +0000 |
commit | 81faccf3f6f70732762949fb8594c27da139d4e8 (patch) | |
tree | ab848d5d611015d8f6ce5ade28c73e024295f4a9 /chrome/browser/renderer_host | |
parent | 7ea0cc2b3acdc5496057937ee2d99cb1dfec1fa0 (diff) | |
download | chromium_src-81faccf3f6f70732762949fb8594c27da139d4e8.zip chromium_src-81faccf3f6f70732762949fb8594c27da139d4e8.tar.gz chromium_src-81faccf3f6f70732762949fb8594c27da139d4e8.tar.bz2 |
Mac: Add a comment to make me understand some code better
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5986006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_mac.mm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm index 60cc85e..6317917 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm +++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm @@ -1083,6 +1083,17 @@ void RenderWidgetHostViewMac::AcknowledgeSwapBuffers( int renderer_id, int32 route_id, uint64 swap_buffers_count) { + // Called on the display link. Hand actual work off to the UI thread, which + // will then redispatch the message to the IPC thread. + // Currently, this is never called for plugins. + if (render_widget_host_) { + DCHECK_EQ(render_widget_host_->process()->id(), renderer_id); + // |render_widget_host_->routing_id()| and |route_id| are usually not + // equal: The former identifies the channel from the RWH in the browser + // process to the corresponding render widget in the renderer process, while + // the latter identifies the channel from the GpuCommandBufferStub in the + // GPU process to the corresponding command buffer client in the renderer. + } BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, new BuffersSwappedAcknowledger( |