diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-06 11:52:32 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-06 11:52:32 +0000 |
commit | d8683e366ade2f3af7200785c1acdab7b09d0c40 (patch) | |
tree | 4f50a2f86333214a67ae8b41d64158ec3b9150dc /chrome/common/gpu_messages_internal.h | |
parent | 32d0269681eff5f46290cafa99511f5733757884 (diff) | |
download | chromium_src-d8683e366ade2f3af7200785c1acdab7b09d0c40.zip chromium_src-d8683e366ade2f3af7200785c1acdab7b09d0c40.tar.gz chromium_src-d8683e366ade2f3af7200785c1acdab7b09d0c40.tar.bz2 |
Revert 61608 - On Windows, create a new TransportDIB::Handle struct which includes the file
mapping HANDLE and the source process ID. Duplicating the handle for the
remote process is done in TransportDIB::Map, instead of in various #ifdefs
scattered across the code. Also on windows, remove the struct for the
TransportDIB::Id which contained both the sequence number and the HANDLE
and replace it with just the sequence number.
Fix ThumbnailGenerator by mapping the TransportDIB on Windows and adding
a method to duplicate the file mapping handle before sending across the
channel.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3305020
BUG=58128
TBR=kkania@chromium.org
Review URL: http://codereview.chromium.org/3596008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_messages_internal.h')
-rw-r--r-- | chrome/common/gpu_messages_internal.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/common/gpu_messages_internal.h b/chrome/common/gpu_messages_internal.h index 22ce601..9a6896b 100644 --- a/chrome/common/gpu_messages_internal.h +++ b/chrome/common/gpu_messages_internal.h @@ -72,11 +72,13 @@ IPC_BEGIN_MESSAGES(Gpu) // Updates the backing store with the given bitmap. The GPU process will send // back a GpuHostMsg_PaintToBackingStore_ACK after the paint is complete to // let the caller know the TransportDIB can be freed or reused. - IPC_MESSAGE_ROUTED3(GpuMsg_PaintToBackingStore, - TransportDIB::Handle, /* bitmap_handle */ + IPC_MESSAGE_ROUTED4(GpuMsg_PaintToBackingStore, + base::ProcessId, /* process */ + TransportDIB::Id, /* bitmap */ gfx::Rect, /* bitmap_rect */ std::vector<gfx::Rect>) /* copy_rects */ + IPC_MESSAGE_ROUTED4(GpuMsg_ScrollBackingStore, int, /* dx */ int, /* dy */ @@ -91,8 +93,9 @@ IPC_BEGIN_MESSAGES(Gpu) // Updates the video layer with the given YUV data. The GPU process will send // back a GpuHostMsg_PaintToVideoLayer_ACK after the paint is complete to // let the caller know the TransportDIB can be freed or reused. - IPC_MESSAGE_ROUTED2(GpuMsg_PaintToVideoLayer, - TransportDIB::Handle, /* bitmap_handle */ + IPC_MESSAGE_ROUTED3(GpuMsg_PaintToVideoLayer, + base::ProcessId, /* process */ + TransportDIB::Id, /* bitmap */ gfx::Rect) /* bitmap_rect */ IPC_END_MESSAGES(Gpu) |