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

Side by Side Diff: src/core/SkSpriteBlitter_RGB16.cpp

Issue 234833003: Revert of Rename kPMColor_SkColorType to kN32_SkColorType. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « src/core/SkSpriteBlitter_ARGB32.cpp ('k') | src/effects/SkAlphaThresholdFilter.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 #include "SkSpriteBlitter.h" 10 #include "SkSpriteBlitter.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 return NULL; 318 return NULL;
319 } 319 }
320 if (paint.getColorFilter() != NULL) { // may add cases for this 320 if (paint.getColorFilter() != NULL) { // may add cases for this
321 return NULL; 321 return NULL;
322 } 322 }
323 323
324 SkSpriteBlitter* blitter = NULL; 324 SkSpriteBlitter* blitter = NULL;
325 unsigned alpha = paint.getAlpha(); 325 unsigned alpha = paint.getAlpha();
326 326
327 switch (source.colorType()) { 327 switch (source.colorType()) {
328 case kN32_SkColorType: { 328 case kPMColor_SkColorType: {
329 blitter = allocator->createT<Sprite_D16_S32_BlitRowProc>(source); 329 blitter = allocator->createT<Sprite_D16_S32_BlitRowProc>(source);
330 break; 330 break;
331 } 331 }
332 case kARGB_4444_SkColorType: 332 case kARGB_4444_SkColorType:
333 if (255 == alpha) { 333 if (255 == alpha) {
334 blitter = allocator->createT<Sprite_D16_S4444_Opaque>(source); 334 blitter = allocator->createT<Sprite_D16_S4444_Opaque>(source);
335 } else { 335 } else {
336 blitter = allocator->createT<Sprite_D16_S4444_Blend>(source, alp ha >> 4); 336 blitter = allocator->createT<Sprite_D16_S4444_Blend>(source, alp ha >> 4);
337 } 337 }
338 break; 338 break;
(...skipping 21 matching lines...) Expand all
360 } else { 360 } else {
361 blitter = allocator->createT<Sprite_D16_SIndex8A_Blend>(sour ce, alpha); 361 blitter = allocator->createT<Sprite_D16_SIndex8A_Blend>(sour ce, alpha);
362 } 362 }
363 } 363 }
364 break; 364 break;
365 default: 365 default:
366 break; 366 break;
367 } 367 }
368 return blitter; 368 return blitter;
369 } 369 }
OLDNEW
« no previous file with comments | « src/core/SkSpriteBlitter_ARGB32.cpp ('k') | src/effects/SkAlphaThresholdFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698