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

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

Issue 17335008: remove dst/rendertarget support for kARGB_4444_Config (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 "SkBlitRow.h" 8 #include "SkBlitRow.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkDither.h" 10 #include "SkDither.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 S32A_D565_Blend, 217 S32A_D565_Blend,
218 218
219 // dither 219 // dither
220 S32_D565_Opaque_Dither, 220 S32_D565_Opaque_Dither,
221 S32_D565_Blend_Dither, 221 S32_D565_Blend_Dither,
222 222
223 S32A_D565_Opaque_Dither, 223 S32A_D565_Opaque_Dither,
224 S32A_D565_Blend_Dither 224 S32A_D565_Blend_Dither
225 }; 225 };
226 226
227 extern SkBlitRow::Proc SkBlitRow_Factory_4444(unsigned flags);
228
229 SkBlitRow::Proc SkBlitRow::Factory(unsigned flags, SkBitmap::Config config) { 227 SkBlitRow::Proc SkBlitRow::Factory(unsigned flags, SkBitmap::Config config) {
230 SkASSERT(flags < SK_ARRAY_COUNT(gDefault_565_Procs)); 228 SkASSERT(flags < SK_ARRAY_COUNT(gDefault_565_Procs));
231 // just so we don't crash 229 // just so we don't crash
232 flags &= kFlags16_Mask; 230 flags &= kFlags16_Mask;
233 231
234 SkBlitRow::Proc proc = NULL; 232 SkBlitRow::Proc proc = NULL;
235 233
236 switch (config) { 234 switch (config) {
237 case SkBitmap::kRGB_565_Config: 235 case SkBitmap::kRGB_565_Config:
238 proc = PlatformProcs565(flags); 236 proc = PlatformProcs565(flags);
239 if (NULL == proc) { 237 if (NULL == proc) {
240 proc = gDefault_565_Procs[flags]; 238 proc = gDefault_565_Procs[flags];
241 } 239 }
242 break; 240 break;
243 case SkBitmap::kARGB_4444_Config:
244 proc = PlatformProcs4444(flags);
245 if (NULL == proc) {
246 proc = SkBlitRow_Factory_4444(flags);
247 }
248 break;
249 default: 241 default:
250 break; 242 break;
251 } 243 }
252 return proc; 244 return proc;
253 } 245 }
OLDNEW
« no previous file with comments | « src/core/SkBitmap.cpp ('k') | src/core/SkBlitRow_D4444.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698