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

Unified Diff: content/renderer/gpu/webgraphicscontext3d_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: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
index a39a118da75b564690132cf29b1455bc66061a4d..ebe66b882e33732690eac3ab8c354a1407118c54 100644
--- a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
@@ -340,6 +340,19 @@ void WebGraphicsContext3DCommandBufferImpl::copyTextureToParentTextureCHROMIUM(
parentTexture);
}
+void WebGraphicsContext3DCommandBufferImpl::mapExternalTextureCHROMIUM(
+ WebGLId source_texture, WebGraphicsContext3D* source_context,
+ WebGLId destination_texture) {
+ WebGraphicsContext3DCommandBufferImpl* source_cmdbuffer_context =
+ static_cast<WebGraphicsContext3DCommandBufferImpl*>(source_context);
apatrick_chromium 2011/07/29 23:59:04 indentation
+ context_->MapExternalResource(gpu::resource_type::kTexture,
+ source_texture,
+ source_cmdbuffer_context->context(),
+ destination_texture);
+
+}
+
+
void WebGraphicsContext3DCommandBufferImpl::
rateLimitOffscreenContextCHROMIUM() {
gl_->RateLimitOffscreenContextCHROMIUM();
« no previous file with comments | « content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698