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

Unified Diff: Source/core/html/canvas/WebGLSharedResources.idl

Issue 17230006: Implement WEBGL_shared_resources Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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: Source/core/html/canvas/WebGLSharedResources.idl
diff --git a/Source/core/html/canvas/WebGLCompressedTextureATC.idl b/Source/core/html/canvas/WebGLSharedResources.idl
similarity index 69%
copy from Source/core/html/canvas/WebGLCompressedTextureATC.idl
copy to Source/core/html/canvas/WebGLSharedResources.idl
index e627f217c217fdd3403aa76e4abcdfc78388d075..150a3bc0238437175e7e3cb8952f9103f5e56792 100644
--- a/Source/core/html/canvas/WebGLCompressedTextureATC.idl
+++ b/Source/core/html/canvas/WebGLSharedResources.idl
@@ -23,12 +23,20 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+typedef unsigned long GLenum;
+
[
- NoInterfaceObject,
DoNotCheckConstants
-] interface WebGLCompressedTextureATC {
- /* Compressed Texture Formats */
- const unsigned long COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
- const unsigned long COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
- const unsigned long COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
+] interface WebGLSharedResources {
+ const GLenum READ_ONLY = 0x0001;
+ const GLenum EXCLUSIVE = 0x0004;
+
+ const GLenum READ_FRAMEBUFFER = 0x8CA8;
+ const GLenum DRAW_FRAMEBUFFER = 0x8CA9;
+
+ readonly attribute WebGLShareGroup group;
+
+ [StrictTypeChecking, RaisesException] long acquireSharedResource(WebGLSharedObject object, GLenum mode, WebGLAcquireSharedResourceCallback callback);
+ [StrictTypeChecking, RaisesException] void releaseSharedResource(WebGLSharedObject object);
+ [StrictTypeChecking] void cancelAcquireSharedResource(long id);
};

Powered by Google App Engine
This is Rietveld 408576698