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

Side by Side Diff: src/core/SkBlitter.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/SkBitmapScaler.cpp ('k') | src/core/SkBlitter_Sprite.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 "SkBlitter.h" 10 #include "SkBlitter.h"
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 blitter = allocator->createT<SkA8_Shader_Blitter>(device, *paint ); 916 blitter = allocator->createT<SkA8_Shader_Blitter>(device, *paint );
917 } else { 917 } else {
918 blitter = allocator->createT<SkA8_Blitter>(device, *paint); 918 blitter = allocator->createT<SkA8_Blitter>(device, *paint);
919 } 919 }
920 break; 920 break;
921 921
922 case kRGB_565_SkColorType: 922 case kRGB_565_SkColorType:
923 blitter = SkBlitter_ChooseD565(device, *paint, allocator); 923 blitter = SkBlitter_ChooseD565(device, *paint, allocator);
924 break; 924 break;
925 925
926 case kPMColor_SkColorType: 926 case kN32_SkColorType:
927 if (shader) { 927 if (shader) {
928 blitter = allocator->createT<SkARGB32_Shader_Blitter>(device, *p aint); 928 blitter = allocator->createT<SkARGB32_Shader_Blitter>(device, *p aint);
929 } else if (paint->getColor() == SK_ColorBLACK) { 929 } else if (paint->getColor() == SK_ColorBLACK) {
930 blitter = allocator->createT<SkARGB32_Black_Blitter>(device, *pa int); 930 blitter = allocator->createT<SkARGB32_Black_Blitter>(device, *pa int);
931 } else if (paint->getAlpha() == 0xFF) { 931 } else if (paint->getAlpha() == 0xFF) {
932 blitter = allocator->createT<SkARGB32_Opaque_Blitter>(device, *p aint); 932 blitter = allocator->createT<SkARGB32_Opaque_Blitter>(device, *p aint);
933 } else { 933 } else {
934 blitter = allocator->createT<SkARGB32_Blitter>(device, *paint); 934 blitter = allocator->createT<SkARGB32_Blitter>(device, *paint);
935 } 935 }
936 break; 936 break;
(...skipping 27 matching lines...) Expand all
964 964
965 fShader->ref(); 965 fShader->ref();
966 fShaderFlags = fShader->getFlags(); 966 fShaderFlags = fShader->getFlags();
967 } 967 }
968 968
969 SkShaderBlitter::~SkShaderBlitter() { 969 SkShaderBlitter::~SkShaderBlitter() {
970 SkASSERT(fShader->setContextHasBeenCalled()); 970 SkASSERT(fShader->setContextHasBeenCalled());
971 fShader->endContext(); 971 fShader->endContext();
972 fShader->unref(); 972 fShader->unref();
973 } 973 }
OLDNEW
« no previous file with comments | « src/core/SkBitmapScaler.cpp ('k') | src/core/SkBlitter_Sprite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698