| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2012 Google Inc. All rights reserved. |    2  * Copyright (C) 2012 Google Inc. All rights reserved. | 
|    3  * |    3  * | 
|    4  * Redistribution and use in source and binary forms, with or without |    4  * Redistribution and use in source and binary forms, with or without | 
|    5  * modification, are permitted provided that the following conditions are |    5  * modification, are permitted provided that the following conditions are | 
|    6  * met: |    6  * met: | 
|    7  * |    7  * | 
|    8  *     * Redistributions of source code must retain the above copyright |    8  *     * Redistributions of source code must retain the above copyright | 
|    9  * notice, this list of conditions and the following disclaimer. |    9  * notice, this list of conditions and the following disclaimer. | 
|   10  *     * Redistributions in binary form must reproduce the above |   10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   53 typedef int WGC3Dsizei; |   53 typedef int WGC3Dsizei; | 
|   54 typedef unsigned WGC3Duint; |   54 typedef unsigned WGC3Duint; | 
|   55 typedef float WGC3Dfloat; |   55 typedef float WGC3Dfloat; | 
|   56 typedef float WGC3Dclampf; |   56 typedef float WGC3Dclampf; | 
|   57 typedef signed long int WGC3Dintptr; |   57 typedef signed long int WGC3Dintptr; | 
|   58 typedef signed long int WGC3Dsizeiptr; |   58 typedef signed long int WGC3Dsizeiptr; | 
|   59  |   59  | 
|   60 // Typedef for server-side objects like OpenGL textures and program objects. |   60 // Typedef for server-side objects like OpenGL textures and program objects. | 
|   61 typedef WGC3Duint WebGLId; |   61 typedef WGC3Duint WebGLId; | 
|   62  |   62  | 
 |   63 struct WebGLInfo { | 
 |   64     WebString vendorInfo; | 
 |   65     WebString rendererInfo; | 
 |   66     WebString driverVersion; | 
 |   67 }; | 
 |   68  | 
|   63 // This interface abstracts the operations performed by the |   69 // This interface abstracts the operations performed by the | 
|   64 // GraphicsContext3D in order to implement WebGL. Nearly all of the |   70 // GraphicsContext3D in order to implement WebGL. Nearly all of the | 
|   65 // methods exposed on this interface map directly to entry points in |   71 // methods exposed on this interface map directly to entry points in | 
|   66 // the OpenGL ES 2.0 API. |   72 // the OpenGL ES 2.0 API. | 
|   67 class WebGraphicsContext3D : public WebNonCopyable { |   73 class WebGraphicsContext3D : public WebNonCopyable { | 
|   68 public: |   74 public: | 
|   69     // Return value from getActiveUniform and getActiveAttrib. |   75     // Return value from getActiveUniform and getActiveAttrib. | 
|   70     struct ActiveInfo { |   76     struct ActiveInfo { | 
|   71         WebString name; |   77         WebString name; | 
|   72         WGC3Denum type; |   78         WGC3Denum type; | 
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  451     virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { 
     } |  457     virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { 
     } | 
|  452  |  458  | 
|  453     // GL_EXT_multisampled_render_to_texture |  459     // GL_EXT_multisampled_render_to_texture | 
|  454     virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum 
     attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam
     ples) { } |  460     virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum 
     attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam
     ples) { } | 
|  455     virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei 
     samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { }; |  461     virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei 
     samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { }; | 
|  456 }; |  462 }; | 
|  457  |  463  | 
|  458 } // namespace blink |  464 } // namespace blink | 
|  459  |  465  | 
|  460 #endif |  466 #endif | 
| OLD | NEW |