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

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

Issue 51033004: add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | « src/core/SkShader.cpp ('k') | src/core/SkSpriteBlitter_RGB16.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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void* storage, size_t storageSize) { 270 void* storage, size_t storageSize) {
271 if (paint.getMaskFilter() != NULL) { 271 if (paint.getMaskFilter() != NULL) {
272 return NULL; 272 return NULL;
273 } 273 }
274 274
275 U8CPU alpha = paint.getAlpha(); 275 U8CPU alpha = paint.getAlpha();
276 SkXfermode* xfermode = paint.getXfermode(); 276 SkXfermode* xfermode = paint.getXfermode();
277 SkColorFilter* filter = paint.getColorFilter(); 277 SkColorFilter* filter = paint.getColorFilter();
278 SkSpriteBlitter* blitter = NULL; 278 SkSpriteBlitter* blitter = NULL;
279 279
280 switch (source.getConfig()) { 280 switch (source.config()) {
281 case SkBitmap::kARGB_4444_Config: 281 case SkBitmap::kARGB_4444_Config:
282 if (alpha != 0xFF) { 282 if (alpha != 0xFF) {
283 return NULL; // we only have opaque sprites 283 return NULL; // we only have opaque sprites
284 } 284 }
285 if (xfermode || filter) { 285 if (xfermode || filter) {
286 SK_PLACEMENT_NEW_ARGS(blitter, Sprite_D32_S4444_XferFilter, 286 SK_PLACEMENT_NEW_ARGS(blitter, Sprite_D32_S4444_XferFilter,
287 storage, storageSize, (source, paint)); 287 storage, storageSize, (source, paint));
288 } else if (source.isOpaque()) { 288 } else if (source.isOpaque()) {
289 SK_PLACEMENT_NEW_ARGS(blitter, Sprite_D32_S4444_Opaque, 289 SK_PLACEMENT_NEW_ARGS(blitter, Sprite_D32_S4444_Opaque,
290 storage, storageSize, (source)); 290 storage, storageSize, (source));
(...skipping 13 matching lines...) Expand all
304 // this can handle alpha, but not xfermode or filter 304 // this can handle alpha, but not xfermode or filter
305 SK_PLACEMENT_NEW_ARGS(blitter, Sprite_D32_S32, 305 SK_PLACEMENT_NEW_ARGS(blitter, Sprite_D32_S32,
306 storage, storageSize, (source, alpha)); 306 storage, storageSize, (source, alpha));
307 } 307 }
308 break; 308 break;
309 default: 309 default:
310 break; 310 break;
311 } 311 }
312 return blitter; 312 return blitter;
313 } 313 }
OLDNEW
« no previous file with comments | « src/core/SkShader.cpp ('k') | src/core/SkSpriteBlitter_RGB16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698