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

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

Issue 23137022: Replace uses of GR_DEBUG by SK_DEBUG. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: not GR_RELEASE 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 | « include/gpu/GrTextureAccess.h ('k') | include/gpu/GrUserConfig.h » ('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 2010 Google Inc. 3 * Copyright 2010 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 9
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 return n ? (1 << (32 - SkCLZ(n - 1))) : 1; 156 return n ? (1 << (32 - SkCLZ(n - 1))) : 1;
157 } 157 }
158 158
159 /////////////////////////////////////////////////////////////////////////////// 159 ///////////////////////////////////////////////////////////////////////////////
160 160
161 /** 161 /**
162 * 16.16 fixed point type 162 * 16.16 fixed point type
163 */ 163 */
164 typedef int32_t GrFixed; 164 typedef int32_t GrFixed;
165 165
166 #if GR_DEBUG 166 #ifdef SK_DEBUG
167 167
168 static inline int16_t GrToS16(intptr_t x) { 168 static inline int16_t GrToS16(intptr_t x) {
169 SkASSERT((int16_t)x == x); 169 SkASSERT((int16_t)x == x);
170 return (int16_t)x; 170 return (int16_t)x;
171 } 171 }
172 172
173 #else 173 #else
174 174
175 #define GrToS16(x) x 175 #define GrToS16(x) x
176 176
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 }; 621 };
622 622
623 /** 623 /**
624 * This value translates to reseting all the context state for any backend. 624 * This value translates to reseting all the context state for any backend.
625 */ 625 */
626 static const uint32_t kAll_GrBackendState = 0xffffffff; 626 static const uint32_t kAll_GrBackendState = 0xffffffff;
627 627
628 /////////////////////////////////////////////////////////////////////////////// 628 ///////////////////////////////////////////////////////////////////////////////
629 629
630 #endif 630 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTextureAccess.h ('k') | include/gpu/GrUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698