Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: src/gpu/gl/GrGLInterface.cpp

Issue 231773003: Add GL_CHROMIUM_map_sub functions to GrGLInterface and bit to GrGLCaps. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698