| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  130     public: |  130     public: | 
|  131         virtual void onErrorMessage(const WebString&, WGC3Dint) = 0; |  131         virtual void onErrorMessage(const WebString&, WGC3Dint) = 0; | 
|  132  |  132  | 
|  133     protected: |  133     protected: | 
|  134         virtual ~WebGraphicsErrorMessageCallback() { } |  134         virtual ~WebGraphicsErrorMessageCallback() { } | 
|  135     }; |  135     }; | 
|  136  |  136  | 
|  137     // This destructor needs to be public so that using classes can destroy inst
     ances if initialization fails. |  137     // This destructor needs to be public so that using classes can destroy inst
     ances if initialization fails. | 
|  138     virtual ~WebGraphicsContext3D() { } |  138     virtual ~WebGraphicsContext3D() { } | 
|  139  |  139  | 
|  140     virtual bool genSyncTokenCHROMIUM(WGC3Duint64, WGC3Dbyte*) { return false; } |  | 
|  141  |  | 
|  142     // Synthesizes an OpenGL error which will be returned from a |  140     // Synthesizes an OpenGL error which will be returned from a | 
|  143     // later call to getError. This is used to emulate OpenGL ES |  141     // later call to getError. This is used to emulate OpenGL ES | 
|  144     // 2.0 behavior on the desktop and to enforce additional error |  142     // 2.0 behavior on the desktop and to enforce additional error | 
|  145     // checking mandated by WebGL. |  143     // checking mandated by WebGL. | 
|  146     // |  144     // | 
|  147     // Per the behavior of glGetError, this stores at most one |  145     // Per the behavior of glGetError, this stores at most one | 
|  148     // instance of any given error, and returns them from calls to |  146     // instance of any given error, and returns them from calls to | 
|  149     // getError in the order they were added. |  147     // getError in the order they were added. | 
|  150     virtual void synthesizeGLError(WGC3Denum) = 0; |  148     virtual void synthesizeGLError(WGC3Denum) = 0; | 
|  151  |  149  | 
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  260     virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum 
     type, WGC3Dsizei stride, WGC3Dintptr pointer) { } |  258     virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum 
     type, WGC3Dsizei stride, WGC3Dintptr pointer) { } | 
|  261     virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
     ut) { } |  259     virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
     ut) { } | 
|  262  |  260  | 
|  263     // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi
     ble, and avoid using WebGraphicsContext3D at all. |  261     // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi
     ble, and avoid using WebGraphicsContext3D at all. | 
|  264     virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; |  262     virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; | 
|  265 }; |  263 }; | 
|  266  |  264  | 
|  267 } // namespace blink |  265 } // namespace blink | 
|  268  |  266  | 
|  269 #endif |  267 #endif | 
| OLD | NEW |