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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 7488069: Expose mapExternalTexture extension to WebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/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: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 937fdb772742c11919c10329c04892894aaccf78..66e8ee8ae3cdc517c9281446e822c696b15fa044 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -967,6 +967,18 @@ void WebGraphicsContext3DInProcessCommandBufferImpl::
copyTextureToCompositor(texture, parentTexture);
}
+void WebGraphicsContext3DInProcessCommandBufferImpl::mapExternalTextureCHROMIUM(
+ WebGLId source_texture, WebGraphicsContext3D* source_context,
+ WebGLId destination_texture) {
+ WebGraphicsContext3DInProcessCommandBufferImpl* source_cmdbuffer_context =
+ static_cast<WebGraphicsContext3DInProcessCommandBufferImpl*>(
+ source_context);
+ context_->MapExternalResource(::gpu::resource_type::kTexture,
+ source_texture,
+ source_cmdbuffer_context->context(),
+ destination_texture);
+}
+
void WebGraphicsContext3DInProcessCommandBufferImpl::
rateLimitOffscreenContextCHROMIUM() {
// TODO(gmam): See if we can comment this in.

Powered by Google App Engine
This is Rietveld 408576698