Title: [123709] trunk/Source/Platform
Revision
123709
Author
commit-qu...@webkit.org
Date
2012-07-25 23:30:50 -0700 (Wed, 25 Jul 2012)

Log Message

Upstream declaration of WebGraphicsContext3D::createStreamTextureCHROMIUM() for android
https://bugs.webkit.org/show_bug.cgi?id=92308

Patch by Min Qin <qin...@chromium.org> on 2012-07-25
Reviewed by Adam Barth.

For android, we need 2 calls to create and destroy the stream texture.
This change adds the interface for these 2 calls.
The actual implementation will be in webgraphicscontext3d_in_process_impl and webgraphicscontext3d_command_buffer_impl.

* chromium/public/WebGraphicsContext3D.h:
(WebGraphicsContext3D):
(WebKit::WebGraphicsContext3D::createStreamTextureCHROMIUM):
(WebKit::WebGraphicsContext3D::destroyStreamTextureCHROMIUM):

Modified Paths

Diff

Modified: trunk/Source/Platform/ChangeLog (123708 => 123709)


--- trunk/Source/Platform/ChangeLog	2012-07-26 06:06:25 UTC (rev 123708)
+++ trunk/Source/Platform/ChangeLog	2012-07-26 06:30:50 UTC (rev 123709)
@@ -1,3 +1,19 @@
+2012-07-25  Min Qin  <qin...@chromium.org>
+
+        Upstream declaration of WebGraphicsContext3D::createStreamTextureCHROMIUM() for android
+        https://bugs.webkit.org/show_bug.cgi?id=92308
+
+        Reviewed by Adam Barth.
+
+        For android, we need 2 calls to create and destroy the stream texture.
+        This change adds the interface for these 2 calls.
+        The actual implementation will be in webgraphicscontext3d_in_process_impl and webgraphicscontext3d_command_buffer_impl.
+
+        * chromium/public/WebGraphicsContext3D.h:
+        (WebGraphicsContext3D):
+        (WebKit::WebGraphicsContext3D::createStreamTextureCHROMIUM):
+        (WebKit::WebGraphicsContext3D::destroyStreamTextureCHROMIUM):
+
 2012-07-25  Tommy Widenflycht  <tom...@google.com>
 
         MediaStream API: Update MediaStreamTrack to match the specification

Modified: trunk/Source/Platform/chromium/public/WebGraphicsContext3D.h (123708 => 123709)


--- trunk/Source/Platform/chromium/public/WebGraphicsContext3D.h	2012-07-26 06:06:25 UTC (rev 123708)
+++ trunk/Source/Platform/chromium/public/WebGraphicsContext3D.h	2012-07-26 06:30:50 UTC (rev 123709)
@@ -221,6 +221,12 @@
     // GL_CHROMIUM_rate_limit_offscreen_context
     virtual void rateLimitOffscreenContextCHROMIUM() { }
 
+    // GL_CHROMIUM_stream_texture
+    // Returns the stream end point identifier created for the given texture.
+    virtual WebGLId createStreamTextureCHROMIUM(WebGLId texture) { return 0; }
+    // Destroys the stream for the given texture.
+    virtual void destroyStreamTextureCHROMIUM(WebGLId texture) { }
+
     // The entry points below map directly to the OpenGL ES 2.0 API.
     // See: http://www.khronos.org/registry/gles/
     // and: http://www.khronos.org/opengles/sdk/docs/man/
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to