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

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

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « src/gpu/gl/GrGLCreateNullInterface.cpp ('k') | src/gpu/gl/GrGLPathRange.cpp » ('j') | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCreateNullInterface.cpp ('k') | src/gpu/gl/GrGLPathRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698