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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 NULL == fFunctions.fInvalidateTexSubImage) { | 497 NULL == fFunctions.fInvalidateTexSubImage) { |
498 RETURN_FALSE_INTERFACE; | 498 RETURN_FALSE_INTERFACE; |
499 } | 499 } |
500 } else if (glVer >= GR_GL_VER(3,0)) { | 500 } else if (glVer >= GR_GL_VER(3,0)) { |
501 // ES 3.0 adds the framebuffer functions but not the others. | 501 // ES 3.0 adds the framebuffer functions but not the others. |
502 if (NULL == fFunctions.fInvalidateFramebuffer || | 502 if (NULL == fFunctions.fInvalidateFramebuffer || |
503 NULL == fFunctions.fInvalidateSubFramebuffer) { | 503 NULL == fFunctions.fInvalidateSubFramebuffer) { |
504 RETURN_FALSE_INTERFACE; | 504 RETURN_FALSE_INTERFACE; |
505 } | 505 } |
506 } | 506 } |
| 507 |
| 508 if (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_CHROMIUM_map_sub"
)) { |
| 509 if (NULL == fFunctions.fMapBufferSubData || |
| 510 NULL == fFunctions.fMapTexSubImage2D || |
| 511 NULL == fFunctions.fUnmapBufferSubData || |
| 512 NULL == fFunctions.fUnmapTexSubImage2D) { |
| 513 RETURN_FALSE_INTERFACE; |
| 514 } |
| 515 } |
507 #endif | 516 #endif |
508 | 517 |
509 return true; | 518 return true; |
510 } | 519 } |
OLD | NEW |