| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrGLInterface_DEFINED | 8 #ifndef GrGLInterface_DEFINED |
| 9 #define GrGLInterface_DEFINED | 9 #define GrGLInterface_DEFINED |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 const GrGLInterface* GrGLCreateMesaInterface(); | 50 const GrGLInterface* GrGLCreateMesaInterface(); |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 #if SK_ANGLE | 53 #if SK_ANGLE |
| 54 /** | 54 /** |
| 55 * Creates a GrGLInterface for an ANGLE context. | 55 * Creates a GrGLInterface for an ANGLE context. |
| 56 */ | 56 */ |
| 57 const GrGLInterface* GrGLCreateANGLEInterface(); | 57 const GrGLInterface* GrGLCreateANGLEInterface(); |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 #if SK_COMMAND_BUFFER |
| 61 /** |
| 62 * Creates a GrGLInterface for a Command Buffer context. |
| 63 */ |
| 64 const GrGLInterface* GrGLCreateCommandBufferInterface(); |
| 65 #endif |
| 66 |
| 60 /** | 67 /** |
| 61 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring | 68 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring |
| 62 * CPU overhead. | 69 * CPU overhead. |
| 63 */ | 70 */ |
| 64 const SK_API GrGLInterface* GrGLCreateNullInterface(); | 71 const SK_API GrGLInterface* GrGLCreateNullInterface(); |
| 65 | 72 |
| 66 /** | 73 /** |
| 67 * Creates a debugging GrGLInterface that doesn't draw anything. Used for | 74 * Creates a debugging GrGLInterface that doesn't draw anything. Used for |
| 68 * finding memory leaks and invalid memory accesses. | 75 * finding memory leaks and invalid memory accesses. |
| 69 */ | 76 */ |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 #if GR_GL_PER_GL_FUNC_CALLBACK | 505 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 499 GrGLInterfaceCallbackProc fCallback; | 506 GrGLInterfaceCallbackProc fCallback; |
| 500 GrGLInterfaceCallbackData fCallbackData; | 507 GrGLInterfaceCallbackData fCallbackData; |
| 501 #endif | 508 #endif |
| 502 | 509 |
| 503 // This exists for internal testing. | 510 // This exists for internal testing. |
| 504 virtual void abandon() const {} | 511 virtual void abandon() const {} |
| 505 }; | 512 }; |
| 506 | 513 |
| 507 #endif | 514 #endif |
| OLD | NEW |