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

Side by Side Diff: src/opts/SkBlitRow_opts_arm.cpp

Issue 847443003: rename blitrow::proc and add (uncalled) hook for colorproc16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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_RGB16.cpp ('k') | src/opts/SkBlitRow_opts_arm_neon.h » ('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 2012 The Android Open Source Project 2 * Copyright 2012 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 "SkBlitRow.h" 8 #include "SkBlitRow.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkDither.h" 10 #include "SkDither.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 "3: \n\t" /* <exit> */ 340 "3: \n\t" /* <exit> */
341 : [dst] "+r" (dst), [src] "+r" (src), [count] "+r" (count), [a lpha] "+r" (alpha) 341 : [dst] "+r" (dst), [src] "+r" (src), [count] "+r" (count), [a lpha] "+r" (alpha)
342 : 342 :
343 : "cc", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12 ", "memory" 343 : "cc", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12 ", "memory"
344 ); 344 );
345 345
346 } 346 }
347 347
348 /////////////////////////////////////////////////////////////////////////////// 348 ///////////////////////////////////////////////////////////////////////////////
349 349
350 static const SkBlitRow::Proc sk_blitrow_platform_565_procs_arm[] = { 350 static const SkBlitRow::Proc16 sk_blitrow_platform_565_procs_arm[] = {
351 // no dither 351 // no dither
352 // NOTE: For the functions below, we don't have a special version 352 // NOTE: For the functions below, we don't have a special version
353 // that assumes that each source pixel is opaque. But our S32A is 353 // that assumes that each source pixel is opaque. But our S32A is
354 // still faster than the default, so use it. 354 // still faster than the default, so use it.
355 S32A_D565_Opaque, // S32_D565_Opaque 355 S32A_D565_Opaque, // S32_D565_Opaque
356 NULL, // S32_D565_Blend 356 NULL, // S32_D565_Blend
357 S32A_D565_Opaque, // S32A_D565_Opaque 357 S32A_D565_Opaque, // S32A_D565_Opaque
358 NULL, // S32A_D565_Blend 358 NULL, // S32A_D565_Blend
359 359
360 // dither 360 // dither
361 NULL, // S32_D565_Opaque_Dither 361 NULL, // S32_D565_Opaque_Dither
362 NULL, // S32_D565_Blend_Dither 362 NULL, // S32_D565_Blend_Dither
363 NULL, // S32A_D565_Opaque_Dither 363 NULL, // S32A_D565_Opaque_Dither
364 NULL, // S32A_D565_Blend_Dither 364 NULL, // S32A_D565_Blend_Dither
365 }; 365 };
366 366
367 static const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm[] = { 367 static const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm[] = {
368 NULL, // S32_Opaque, 368 NULL, // S32_Opaque,
369 NULL, // S32_Blend, 369 NULL, // S32_Blend,
370 S32A_Opaque_BlitRow32_arm, // S32A_Opaque, 370 S32A_Opaque_BlitRow32_arm, // S32A_Opaque,
371 S32A_Blend_BlitRow32_arm // S32A_Blend 371 S32A_Blend_BlitRow32_arm // S32A_Blend
372 }; 372 };
373 373
374 #endif // USE_ARM_CODE 374 #endif // USE_ARM_CODE
375 375
376 SkBlitRow::Proc SkBlitRow::PlatformProcs565(unsigned flags) { 376 SkBlitRow::Proc16 SkBlitRow::PlatformFactory565(unsigned flags) {
377 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_procs_arm)[flags]; 377 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_procs_arm)[flags];
378 } 378 }
379 379
380 SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) {
381 return NULL;
382 }
383
380 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { 384 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) {
381 return SK_ARM_NEON_WRAP(sk_blitrow_platform_32_procs_arm)[flags]; 385 return SK_ARM_NEON_WRAP(sk_blitrow_platform_32_procs_arm)[flags];
382 } 386 }
383 387
384 /////////////////////////////////////////////////////////////////////////////// 388 ///////////////////////////////////////////////////////////////////////////////
385 #define Color32_arm NULL 389 #define Color32_arm NULL
386 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { 390 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() {
387 return SK_ARM_NEON_WRAP(Color32_arm); 391 return SK_ARM_NEON_WRAP(Color32_arm);
388 } 392 }
389 393
390 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { 394 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() {
391 return NULL; 395 return NULL;
392 } 396 }
OLDNEW
« no previous file with comments | « src/core/SkSpriteBlitter_RGB16.cpp ('k') | src/opts/SkBlitRow_opts_arm_neon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698