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" |
11 #include "gl/GrGLUtil.h" | 11 #include "gl/GrGLUtil.h" |
12 | 12 |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 | 14 |
15 SK_DEFINE_INST_COUNT(GrGLInterface) | |
16 | |
17 #if GR_GL_PER_GL_FUNC_CALLBACK | 15 #if GR_GL_PER_GL_FUNC_CALLBACK |
18 namespace { | 16 namespace { |
19 void GrGLDefaultInterfaceCallback(const GrGLInterface*) {} | 17 void GrGLDefaultInterfaceCallback(const GrGLInterface*) {} |
20 } | 18 } |
21 #endif | 19 #endif |
22 | 20 |
23 GrGLInterface::GrGLInterface() { | 21 GrGLInterface::GrGLInterface() { |
24 fBindingsExported = kNone_GrGLBinding; | 22 fBindingsExported = kNone_GrGLBinding; |
25 | 23 |
26 #if GR_GL_PER_GL_FUNC_CALLBACK | 24 #if GR_GL_PER_GL_FUNC_CALLBACK |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 if (NULL == fBindVertexArray || | 411 if (NULL == fBindVertexArray || |
414 NULL == fDeleteVertexArrays || | 412 NULL == fDeleteVertexArrays || |
415 NULL == fGenVertexArrays) { | 413 NULL == fGenVertexArrays) { |
416 return false; | 414 return false; |
417 } | 415 } |
418 } | 416 } |
419 } | 417 } |
420 | 418 |
421 return true; | 419 return true; |
422 } | 420 } |
OLD | NEW |