diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-21 23:55:56 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-21 23:55:56 +0000 |
commit | bc4a343d38e945209a2aa02572af3e71c89cae42 (patch) | |
tree | 6312f02d108f26184e8d6ef193117e538cf5f134 /content/common/gpu/gpu_channel.cc | |
parent | 4c136c6a49b15a2e5824682d858a21d8becb4259 (diff) | |
download | chromium_src-bc4a343d38e945209a2aa02572af3e71c89cae42.zip chromium_src-bc4a343d38e945209a2aa02572af3e71c89cae42.tar.gz chromium_src-bc4a343d38e945209a2aa02572af3e71c89cae42.tar.bz2 |
Revert 111040 - Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buffer to the browser process for presentation.
Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before.
PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided.
I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency.
I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations.
Original Review URL: http://codereview.chromium.org/8060045
Review URL: http://codereview.chromium.org/8620006
TBR=apatrick@chromium.org
Review URL: http://codereview.chromium.org/8625003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_channel.cc')
-rw-r--r-- | content/common/gpu/gpu_channel.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc index 27eb490..2f14065 100644 --- a/content/common/gpu/gpu_channel.cc +++ b/content/common/gpu/gpu_channel.cc @@ -209,6 +209,14 @@ void GpuChannel::CreateViewCommandBuffer( #endif // ENABLE_GPU } +void GpuChannel::ViewResized(int32 command_buffer_route_id) { + GpuCommandBufferStub* stub = stubs_.Lookup(command_buffer_route_id); + if (stub == NULL) + return; + + stub->ViewResized(); +} + GpuCommandBufferStub* GpuChannel::LookupCommandBuffer(int32 route_id) { return stubs_.Lookup(route_id); } |