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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 7529015: Allow the renderer process to map textures from one context into another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
===================================================================
--- content/common/gpu/gpu_command_buffer_stub.cc (revision 94701)
+++ content/common/gpu/gpu_command_buffer_stub.cc (working copy)
@@ -73,6 +73,8 @@
IPC_BEGIN_MESSAGE_MAP(GpuCommandBufferStub, message)
IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_Initialize,
OnInitialize);
+ IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_MapExternalResource,
+ OnMapExternalResource);
IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_SetParent,
OnSetParent);
IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_GetState, OnGetState);
@@ -246,6 +248,22 @@
Send(reply_message);
}
+
jamesr 2011/07/29 19:55:08 nit: extra newline
+void GpuCommandBufferStub::OnMapExternalResource(
+ gpu::resource_type::ResourceType resource_type,
+ uint32 resource_source_id,
+ int32 source_route_id,
+ uint32 resource_dest_id) {
+ GpuCommandBufferStub* source_stub =
+ channel_->LookupCommandBuffer(source_route_id);
+
+ scheduler_->MapExternalResource(
+ resource_type,
+ resource_source_id,
+ source_stub ? source_stub->scheduler() : NULL,
+ resource_dest_id);
+}
+
void GpuCommandBufferStub::OnSetParent(int32 parent_route_id,
uint32 parent_texture_id,
IPC::Message* reply_message) {
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698