| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 GrGLTestInterface_DEFINED | 8 #ifndef GrGLTestInterface_DEFINED |
| 9 #define GrGLTestInterface_DEFINED | 9 #define GrGLTestInterface_DEFINED |
| 10 | 10 |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 virtual GrGLvoid disableVertexArray(GrGLuint vaobj, GrGLenum array) {} | 310 virtual GrGLvoid disableVertexArray(GrGLuint vaobj, GrGLenum array) {} |
| 311 virtual GrGLvoid enableVertexArrayAttrib(GrGLuint vaobj, GrGLuint index) {} | 311 virtual GrGLvoid enableVertexArrayAttrib(GrGLuint vaobj, GrGLuint index) {} |
| 312 virtual GrGLvoid disableVertexArrayAttrib(GrGLuint vaobj, GrGLuint index) {} | 312 virtual GrGLvoid disableVertexArrayAttrib(GrGLuint vaobj, GrGLuint index) {} |
| 313 virtual GrGLvoid getVertexArrayIntegerv(GrGLuint vaobj, GrGLenum pname, GrGL
int *param) {} | 313 virtual GrGLvoid getVertexArrayIntegerv(GrGLuint vaobj, GrGLenum pname, GrGL
int *param) {} |
| 314 virtual GrGLvoid getVertexArrayPointerv(GrGLuint vaobj, GrGLenum pname, GrGL
void **param) {} | 314 virtual GrGLvoid getVertexArrayPointerv(GrGLuint vaobj, GrGLenum pname, GrGL
void **param) {} |
| 315 virtual GrGLvoid getVertexArrayIntegeri_v(GrGLuint vaobj, GrGLuint index, Gr
GLenum pname, GrGLint *param) {} | 315 virtual GrGLvoid getVertexArrayIntegeri_v(GrGLuint vaobj, GrGLuint index, Gr
GLenum pname, GrGLint *param) {} |
| 316 virtual GrGLvoid getVertexArrayPointeri_v(GrGLuint vaobj, GrGLuint index, Gr
GLenum pname, GrGLvoid **param) {} | 316 virtual GrGLvoid getVertexArrayPointeri_v(GrGLuint vaobj, GrGLuint index, Gr
GLenum pname, GrGLvoid **param) {} |
| 317 virtual GrGLvoid* mapNamedBufferRange(GrGLuint buffer, GrGLintptr offset, Gr
GLsizeiptr length, GrGLbitfield access) { return nullptr; } | 317 virtual GrGLvoid* mapNamedBufferRange(GrGLuint buffer, GrGLintptr offset, Gr
GLsizeiptr length, GrGLbitfield access) { return nullptr; } |
| 318 virtual GrGLvoid flushMappedNamedBufferRange(GrGLuint buffer, GrGLintptr off
set, GrGLsizeiptr length) {} | 318 virtual GrGLvoid flushMappedNamedBufferRange(GrGLuint buffer, GrGLintptr off
set, GrGLsizeiptr length) {} |
| 319 virtual GrGLvoid textureBuffer(GrGLuint texture, GrGLenum target, GrGLenum i
nternalformat, GrGLuint buffer) {} | 319 virtual GrGLvoid textureBuffer(GrGLuint texture, GrGLenum target, GrGLenum i
nternalformat, GrGLuint buffer) {} |
| 320 virtual GrGLsync fenceSync(GrGLenum condition, GrGLbitfield flags) { return
nullptr; } |
| 321 virtual GrGLenum clientWaitSync(GrGLsync sync, GrGLbitfield flags, GrGLuint6
4 timeout) { return GR_GL_WAIT_FAILED; } |
| 322 virtual GrGLvoid deleteSync(GrGLsync sync) {} |
| 320 virtual GrGLvoid debugMessageControl(GrGLenum source, GrGLenum type, GrGLenu
m severity, GrGLsizei count, const GrGLuint* ids, GrGLboolean enabled) {} | 323 virtual GrGLvoid debugMessageControl(GrGLenum source, GrGLenum type, GrGLenu
m severity, GrGLsizei count, const GrGLuint* ids, GrGLboolean enabled) {} |
| 321 virtual GrGLvoid debugMessageInsert(GrGLenum source, GrGLenum type, GrGLuint
id, GrGLenum severity, GrGLsizei length, const GrGLchar* buf) {} | 324 virtual GrGLvoid debugMessageInsert(GrGLenum source, GrGLenum type, GrGLuint
id, GrGLenum severity, GrGLsizei length, const GrGLchar* buf) {} |
| 322 virtual GrGLvoid debugMessageCallback(GRGLDEBUGPROC callback, const GrGLvoid
* userParam) {} | 325 virtual GrGLvoid debugMessageCallback(GRGLDEBUGPROC callback, const GrGLvoid
* userParam) {} |
| 323 virtual GrGLuint getDebugMessageLog(GrGLuint count, GrGLsizei bufSize, GrGLe
num* sources, GrGLenum* types, GrGLuint* ids, GrGLenum* severities, GrGLsizei* l
engths, GrGLchar* messageLog) { return 0; } | 326 virtual GrGLuint getDebugMessageLog(GrGLuint count, GrGLsizei bufSize, GrGLe
num* sources, GrGLenum* types, GrGLuint* ids, GrGLenum* severities, GrGLsizei* l
engths, GrGLchar* messageLog) { return 0; } |
| 324 virtual GrGLvoid pushDebugGroup(GrGLenum source, GrGLuint id, GrGLsizei leng
th, const GrGLchar * message) {} | 327 virtual GrGLvoid pushDebugGroup(GrGLenum source, GrGLuint id, GrGLsizei leng
th, const GrGLchar * message) {} |
| 325 virtual GrGLvoid popDebugGroup() {} | 328 virtual GrGLvoid popDebugGroup() {} |
| 326 virtual GrGLvoid objectLabel(GrGLenum identifier, GrGLuint name, GrGLsizei l
ength, const GrGLchar *label) {} | 329 virtual GrGLvoid objectLabel(GrGLenum identifier, GrGLuint name, GrGLsizei l
ength, const GrGLchar *label) {} |
| 327 | 330 |
| 328 protected: | 331 protected: |
| 329 // This must be called by leaf class | 332 // This must be called by leaf class |
| 330 void init(GrGLStandard standard) { | 333 void init(GrGLStandard standard) { |
| 331 fStandard = standard; | 334 fStandard = standard; |
| 332 fExtensions.init(standard, fFunctions.fGetString, fFunctions.fGetStringi
, | 335 fExtensions.init(standard, fFunctions.fGetString, fFunctions.fGetStringi
, |
| 333 fFunctions.fGetIntegerv, nullptr, GR_EGL_NO_DISPLAY); | 336 fFunctions.fGetIntegerv, nullptr, GR_EGL_NO_DISPLAY); |
| 334 } | 337 } |
| 335 GrGLTestInterface(); | 338 GrGLTestInterface(); |
| 336 }; | 339 }; |
| 337 | 340 |
| 338 #endif | 341 #endif |
| OLD | NEW |