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

Side by Side Diff: src/gpu/GrPaint.cpp

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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrPaint.h" 9 #include "GrPaint.h"
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // should have been false. 97 // should have been false.
98 case kSC_GrBlendCoeff: 98 case kSC_GrBlendCoeff:
99 case kISC_GrBlendCoeff: 99 case kISC_GrBlendCoeff:
100 case kDC_GrBlendCoeff: 100 case kDC_GrBlendCoeff:
101 case kIDC_GrBlendCoeff: 101 case kIDC_GrBlendCoeff:
102 case kSA_GrBlendCoeff: 102 case kSA_GrBlendCoeff:
103 case kISA_GrBlendCoeff: 103 case kISA_GrBlendCoeff:
104 case kDA_GrBlendCoeff: 104 case kDA_GrBlendCoeff:
105 case kIDA_GrBlendCoeff: 105 case kIDA_GrBlendCoeff:
106 default: 106 default:
107 GrCrash("srcCoeff should not refer to src or dst."); 107 SkFAIL("srcCoeff should not refer to src or dst.");
108 break; 108 break;
109 109
110 // TODO: update this once GrPaint actually has a const color. 110 // TODO: update this once GrPaint actually has a const color.
111 case kConstC_GrBlendCoeff: 111 case kConstC_GrBlendCoeff:
112 case kIConstC_GrBlendCoeff: 112 case kIConstC_GrBlendCoeff:
113 case kConstA_GrBlendCoeff: 113 case kConstA_GrBlendCoeff:
114 case kIConstA_GrBlendCoeff: 114 case kIConstA_GrBlendCoeff:
115 *solidColorKnownComponents = 0; 115 *solidColorKnownComponents = 0;
116 break; 116 break;
117 } 117 }
118 } else { 118 } else {
119 solidColorKnownComponents = 0; 119 solidColorKnownComponents = 0;
120 } 120 }
121 } 121 }
122 return opaque; 122 return opaque;
123 } 123 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698