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

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

Issue 23703010: Replace uses of GR_DEBUGCODE by SkDEBUGCODE. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrAllocator.h ('k') | src/gpu/GrContext.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 /* 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 "GrBlend.h" 9 #include "GrBlend.h"
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 *srcCoeff = kOne_GrBlendCoeff; 106 *srcCoeff = kOne_GrBlendCoeff;
107 } else if (0 == GrColorUnpackA(constantColor)) { 107 } else if (0 == GrColorUnpackA(constantColor)) {
108 *srcCoeff = kZero_GrBlendCoeff; 108 *srcCoeff = kZero_GrBlendCoeff;
109 } 109 }
110 break; 110 break;
111 111
112 default: 112 default:
113 break; 113 break;
114 } 114 }
115 // We may have invalidated these above and shouldn't read them again. 115 // We may have invalidated these above and shouldn't read them again.
116 GR_DEBUGCODE(dstColor = constantColor = GrColor_ILLEGAL;) 116 SkDEBUGCODE(dstColor = constantColor = GrColor_ILLEGAL;)
117 117
118 if (kZero_GrBlendCoeff == *srcCoeff || (valid_color(srcCompFlags) && 0 == sr cColor)) { 118 if (kZero_GrBlendCoeff == *srcCoeff || (valid_color(srcCompFlags) && 0 == sr cColor)) {
119 *srcCoeff = kZero_GrBlendCoeff; 119 *srcCoeff = kZero_GrBlendCoeff;
120 return 0; 120 return 0;
121 } 121 }
122 122
123 if (kOne_GrBlendCoeff == *srcCoeff && valid_color(srcCompFlags)) { 123 if (kOne_GrBlendCoeff == *srcCoeff && valid_color(srcCompFlags)) {
124 return srcColor; 124 return srcColor;
125 } else { 125 } else {
126 return GrColor_ILLEGAL; 126 return GrColor_ILLEGAL;
(...skipping 18 matching lines...) Expand all
145 srcColor, srcCompFlags, 145 srcColor, srcCompFlags,
146 constantColor); 146 constantColor);
147 *dstCoeff = swap_coeff_src_dst(spoofedCoeff); 147 *dstCoeff = swap_coeff_src_dst(spoofedCoeff);
148 148
149 if (GrColor_ILLEGAL != srcTermColor && GrColor_ILLEGAL != dstTermColor) { 149 if (GrColor_ILLEGAL != srcTermColor && GrColor_ILLEGAL != dstTermColor) {
150 return add_colors(srcTermColor, dstTermColor); 150 return add_colors(srcTermColor, dstTermColor);
151 } else { 151 } else {
152 return GrColor_ILLEGAL; 152 return GrColor_ILLEGAL;
153 } 153 }
154 } 154 }
OLDNEW
« no previous file with comments | « src/gpu/GrAllocator.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698