| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 GrGLInterface::GrGLInterface() { | 67 GrGLInterface::GrGLInterface() { |
| 68 fStandard = kNone_GrGLStandard; | 68 fStandard = kNone_GrGLStandard; |
| 69 | 69 |
| 70 #if GR_GL_PER_GL_FUNC_CALLBACK | 70 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 71 fCallback = GrGLDefaultInterfaceCallback; | 71 fCallback = GrGLDefaultInterfaceCallback; |
| 72 fCallbackData = 0; | 72 fCallbackData = 0; |
| 73 #endif | 73 #endif |
| 74 } | 74 } |
| 75 | 75 |
| 76 GrGLInterface* GrGLInterface::NewClone(const GrGLInterface* interface) { | 76 GrGLInterface* GrGLInterface::NewClone(const GrGLInterface* interface) { |
| 77 SkASSERT(NULL != interface); | 77 SkASSERT(interface); |
| 78 | 78 |
| 79 GrGLInterface* clone = SkNEW(GrGLInterface); | 79 GrGLInterface* clone = SkNEW(GrGLInterface); |
| 80 clone->fStandard = interface->fStandard; | 80 clone->fStandard = interface->fStandard; |
| 81 clone->fExtensions = interface->fExtensions; | 81 clone->fExtensions = interface->fExtensions; |
| 82 clone->fFunctions = interface->fFunctions; | 82 clone->fFunctions = interface->fFunctions; |
| 83 #if GR_GL_PER_GL_FUNC_CALLBACK | 83 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 84 clone->fCallback = interface->fCallback; | 84 clone->fCallback = interface->fCallback; |
| 85 clone->fCallbackData = interface->fCallbackData; | 85 clone->fCallbackData = interface->fCallbackData; |
| 86 #endif | 86 #endif |
| 87 return clone; | 87 return clone; |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 NULL == fFunctions.fStencilThenCoverFillPathInstanced || | 486 NULL == fFunctions.fStencilThenCoverFillPathInstanced || |
| 487 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || | 487 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || |
| 488 NULL == fFunctions.fProgramPathFragmentInputGen) { | 488 NULL == fFunctions.fProgramPathFragmentInputGen) { |
| 489 RETURN_FALSE_INTERFACE | 489 RETURN_FALSE_INTERFACE |
| 490 } | 490 } |
| 491 } | 491 } |
| 492 } | 492 } |
| 493 | 493 |
| 494 return true; | 494 return true; |
| 495 } | 495 } |
| OLD | NEW |