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

Unified Diff: gpu/command_buffer/service/gpu_scheduler.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
Index: gpu/command_buffer/service/gpu_scheduler.cc
===================================================================
--- gpu/command_buffer/service/gpu_scheduler.cc (revision 94701)
+++ gpu/command_buffer/service/gpu_scheduler.cc (working copy)
@@ -129,6 +129,18 @@
return decoder_->SetParent(NULL, 0);
}
+bool GpuScheduler::MapExternalResource(
+ resource_type::ResourceType resource_type,
+ uint32 resource_source_id,
+ GpuScheduler* source_scheduler,
+ uint32 resource_dest_id) {
+ return decoder_->MapExternalResource(
+ resource_type,
+ resource_source_id,
+ source_scheduler ? source_scheduler->decoder_.get() : NULL,
+ resource_dest_id);
+}
+
#if defined(OS_MACOSX)
namespace {
const unsigned int kMaxOutstandingSwapBuffersCallsPerOnscreenContext = 1;

Powered by Google App Engine
This is Rietveld 408576698