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

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

Issue 233813004: Revert of 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/SkBlitter.cpp ('k') | src/core/SkCanvas.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkSmallAllocator.h" 8 #include "SkSmallAllocator.h"
9 #include "SkSpriteBlitter.h" 9 #include "SkSpriteBlitter.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 (which does respect soft edges). 60 (which does respect soft edges).
61 */ 61 */
62 SkASSERT(allocator != NULL); 62 SkASSERT(allocator != NULL);
63 63
64 SkSpriteBlitter* blitter; 64 SkSpriteBlitter* blitter;
65 65
66 switch (device.colorType()) { 66 switch (device.colorType()) {
67 case kRGB_565_SkColorType: 67 case kRGB_565_SkColorType:
68 blitter = SkSpriteBlitter::ChooseD16(source, paint, allocator); 68 blitter = SkSpriteBlitter::ChooseD16(source, paint, allocator);
69 break; 69 break;
70 case kPMColor_SkColorType: 70 case kN32_SkColorType:
71 blitter = SkSpriteBlitter::ChooseD32(source, paint, allocator); 71 blitter = SkSpriteBlitter::ChooseD32(source, paint, allocator);
72 break; 72 break;
73 default: 73 default:
74 blitter = NULL; 74 blitter = NULL;
75 break; 75 break;
76 } 76 }
77 77
78 if (blitter) { 78 if (blitter) {
79 blitter->setup(device, left, top, paint); 79 blitter->setup(device, left, top, paint);
80 } 80 }
81 return blitter; 81 return blitter;
82 } 82 }
OLDNEW
« no previous file with comments | « src/core/SkBlitter.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698