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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 #if GR_GL_PER_GL_FUNC_CALLBACK | 69 #if GR_GL_PER_GL_FUNC_CALLBACK |
70 fCallback = GrGLDefaultInterfaceCallback; | 70 fCallback = GrGLDefaultInterfaceCallback; |
71 fCallbackData = 0; | 71 fCallbackData = 0; |
72 #endif | 72 #endif |
73 } | 73 } |
74 | 74 |
75 GrGLInterface* GrGLInterface::NewClone(const GrGLInterface* interface) { | 75 GrGLInterface* GrGLInterface::NewClone(const GrGLInterface* interface) { |
76 SkASSERT(interface); | 76 SkASSERT(interface); |
77 | 77 |
78 GrGLInterface* clone = SkNEW(GrGLInterface); | 78 GrGLInterface* clone = new GrGLInterface; |
79 clone->fStandard = interface->fStandard; | 79 clone->fStandard = interface->fStandard; |
80 clone->fExtensions = interface->fExtensions; | 80 clone->fExtensions = interface->fExtensions; |
81 clone->fFunctions = interface->fFunctions; | 81 clone->fFunctions = interface->fFunctions; |
82 #if GR_GL_PER_GL_FUNC_CALLBACK | 82 #if GR_GL_PER_GL_FUNC_CALLBACK |
83 clone->fCallback = interface->fCallback; | 83 clone->fCallback = interface->fCallback; |
84 clone->fCallbackData = interface->fCallbackData; | 84 clone->fCallbackData = interface->fCallbackData; |
85 #endif | 85 #endif |
86 return clone; | 86 return clone; |
87 } | 87 } |
88 | 88 |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 NULL == fFunctions.fGetDebugMessageLog || | 709 NULL == fFunctions.fGetDebugMessageLog || |
710 NULL == fFunctions.fPushDebugGroup || | 710 NULL == fFunctions.fPushDebugGroup || |
711 NULL == fFunctions.fPopDebugGroup || | 711 NULL == fFunctions.fPopDebugGroup || |
712 NULL == fFunctions.fObjectLabel) { | 712 NULL == fFunctions.fObjectLabel) { |
713 RETURN_FALSE_INTERFACE | 713 RETURN_FALSE_INTERFACE |
714 } | 714 } |
715 } | 715 } |
716 | 716 |
717 return true; | 717 return true; |
718 } | 718 } |
OLD | NEW |