| 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 | 8 |
| 9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
| 10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 } | 479 } |
| 480 } | 480 } |
| 481 | 481 |
| 482 if (fExtensions.has("GL_EXT_debug_marker")) { | 482 if (fExtensions.has("GL_EXT_debug_marker")) { |
| 483 if (NULL == fFunctions.fInsertEventMarker || | 483 if (NULL == fFunctions.fInsertEventMarker || |
| 484 NULL == fFunctions.fPushGroupMarker || | 484 NULL == fFunctions.fPushGroupMarker || |
| 485 NULL == fFunctions.fPopGroupMarker) { | 485 NULL == fFunctions.fPopGroupMarker) { |
| 486 RETURN_FALSE_INTERFACE | 486 RETURN_FALSE_INTERFACE |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 |
| 490 #if 0 // This can be enabled once Chromium is updated to set these functions poi
nters. |
| 491 if ((kGL_GrGLStandard == fStandard) || fExtensions.has("GL_ARB_invalidate_su
bdata")) { |
| 492 if (NULL == fFunctions.fInvalidateBufferData || |
| 493 NULL == fFunctions.fInvalidateBufferSubData || |
| 494 NULL == fFunctions.fInvalidateFramebuffer || |
| 495 NULL == fFunctions.fInvalidateSubFramebuffer || |
| 496 NULL == fFunctions.fInvalidateTexImage || |
| 497 NULL == fFunctions.fInvalidateTexSubImage) { |
| 498 RETURN_FALSE_INTERFACE; |
| 499 } |
| 500 } else if (glVer >= GR_GL_VER(3,0)) { |
| 501 // ES 3.0 adds the framebuffer functions but not the others. |
| 502 if (NULL == fFunctions.fInvalidateFramebuffer || |
| 503 NULL == fFunctions.fInvalidateSubFramebuffer) { |
| 504 RETURN_FALSE_INTERFACE; |
| 505 } |
| 506 } |
| 507 #endif |
| 508 |
| 489 return true; | 509 return true; |
| 490 } | 510 } |
| OLD | NEW |