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

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

Issue 27192003: Start cleaning up 64bit Win warnings (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleaned up Created 7 years, 2 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/core/SkWriter32.h ('k') | include/utils/SkMeshUtils.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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 switch (config) { 308 switch (config) {
309 case kBGRA_8888_GrPixelConfig: 309 case kBGRA_8888_GrPixelConfig:
310 return kRGBA_8888_GrPixelConfig; 310 return kRGBA_8888_GrPixelConfig;
311 case kRGBA_8888_GrPixelConfig: 311 case kRGBA_8888_GrPixelConfig:
312 return kBGRA_8888_GrPixelConfig; 312 return kBGRA_8888_GrPixelConfig;
313 default: 313 default:
314 return kUnknown_GrPixelConfig; 314 return kUnknown_GrPixelConfig;
315 } 315 }
316 } 316 }
317 317
318 static inline size_t GrBytesPerPixel(GrPixelConfig config) { 318 static inline int GrBytesPerPixel(GrPixelConfig config) {
bsalomon 2013/10/14 19:27:37 Hmm.. seems like this should be a size_t
robertphillips 2013/10/14 19:51:12 Done.
319 switch (config) { 319 switch (config) {
320 case kAlpha_8_GrPixelConfig: 320 case kAlpha_8_GrPixelConfig:
321 case kIndex_8_GrPixelConfig: 321 case kIndex_8_GrPixelConfig:
322 return 1; 322 return 1;
323 case kRGB_565_GrPixelConfig: 323 case kRGB_565_GrPixelConfig:
324 case kRGBA_4444_GrPixelConfig: 324 case kRGBA_4444_GrPixelConfig:
325 return 2; 325 return 2;
326 case kRGBA_8888_GrPixelConfig: 326 case kRGBA_8888_GrPixelConfig:
327 case kBGRA_8888_GrPixelConfig: 327 case kBGRA_8888_GrPixelConfig:
328 return 4; 328 return 4;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 }; 613 };
614 614
615 /** 615 /**
616 * This value translates to reseting all the context state for any backend. 616 * This value translates to reseting all the context state for any backend.
617 */ 617 */
618 static const uint32_t kAll_GrBackendState = 0xffffffff; 618 static const uint32_t kAll_GrBackendState = 0xffffffff;
619 619
620 /////////////////////////////////////////////////////////////////////////////// 620 ///////////////////////////////////////////////////////////////////////////////
621 621
622 #endif 622 #endif
OLDNEW
« no previous file with comments | « include/core/SkWriter32.h ('k') | include/utils/SkMeshUtils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698