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

Side by Side Diff: include/gpu/GrContextFactory.h

Issue 257393004: Convert GrCrash->SkFAIL GrDebugCrash->SkDEBUGFAIL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: whitespace change Created 6 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 #ifndef GrContextFactory_DEFINED 8 #ifndef GrContextFactory_DEFINED
9 #define GrContextFactory_DEFINED 9 #define GrContextFactory_DEFINED
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #endif 77 #endif
78 #if SK_MESA 78 #if SK_MESA
79 case kMESA_GLContextType: 79 case kMESA_GLContextType:
80 return "mesa"; 80 return "mesa";
81 #endif 81 #endif
82 case kNVPR_GLContextType: 82 case kNVPR_GLContextType:
83 return "nvpr"; 83 return "nvpr";
84 case kDebug_GLContextType: 84 case kDebug_GLContextType:
85 return "debug"; 85 return "debug";
86 default: 86 default:
87 GrCrash("Unknown GL Context type."); 87 SkFAIL("Unknown GL Context type.");
88 } 88 }
89 } 89 }
90 90
91 GrContextFactory() { 91 GrContextFactory() {
92 } 92 }
93 93
94 ~GrContextFactory() { this->destroyContexts(); } 94 ~GrContextFactory() { this->destroyContexts(); }
95 95
96 void destroyContexts() { 96 void destroyContexts() {
97 for (int i = 0; i < fContexts.count(); ++i) { 97 for (int i = 0; i < fContexts.count(); ++i) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 private: 188 private:
189 struct GPUContext { 189 struct GPUContext {
190 GLContextType fType; 190 GLContextType fType;
191 SkGLContextHelper* fGLContext; 191 SkGLContextHelper* fGLContext;
192 GrContext* fGrContext; 192 GrContext* fGrContext;
193 }; 193 };
194 SkTArray<GPUContext, true> fContexts; 194 SkTArray<GPUContext, true> fContexts;
195 }; 195 };
196 196
197 #endif 197 #endif
OLDNEW
« include/core/SkTypes.h ('K') | « include/gpu/GrConfig.h ('k') | include/gpu/GrTypesPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698