gfx/skia/trunk/src/opts/SkBlitMask_opts_arm.cpp

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1
michael@0 2 #include "SkColor.h"
michael@0 3 #include "SkColorPriv.h"
michael@0 4 #include "SkBlitMask.h"
michael@0 5 #include "SkUtilsArm.h"
michael@0 6 #include "SkBlitMask_opts_arm_neon.h"
michael@0 7
michael@0 8 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkBitmap::Config dstConfig,
michael@0 9 SkMask::Format maskFormat,
michael@0 10 SkColor color) {
michael@0 11 #if SK_ARM_NEON_IS_NONE
michael@0 12 return NULL;
michael@0 13 #else
michael@0 14 /* ** This has been disabled until we can diagnose and fix the SIGILL generated
michael@0 15 ** in the NEON code. See http://skbug.com/2067 for details.
michael@0 16 #if SK_ARM_NEON_IS_DYNAMIC
michael@0 17 if (!sk_cpu_arm_has_neon()) {
michael@0 18 return NULL;
michael@0 19 }
michael@0 20 #endif
michael@0 21 if ((SkBitmap::kARGB_8888_Config == dstConfig) &&
michael@0 22 (SkMask::kA8_Format == maskFormat)) {
michael@0 23 return D32_A8_Factory_neon(color);
michael@0 24 }
michael@0 25 */
michael@0 26 #endif
michael@0 27
michael@0 28 // We don't need to handle the SkMask::kLCD16_Format case as the default
michael@0 29 // LCD16 will call us through SkBlitMask::PlatformBlitRowProcs16()
michael@0 30
michael@0 31 return NULL;
michael@0 32 }
michael@0 33
michael@0 34 SkBlitMask::BlitLCD16RowProc SkBlitMask::PlatformBlitRowProcs16(bool isOpaque) {
michael@0 35 if (isOpaque) {
michael@0 36 return SK_ARM_NEON_WRAP(SkBlitLCD16OpaqueRow);
michael@0 37 } else {
michael@0 38 return SK_ARM_NEON_WRAP(SkBlitLCD16Row);
michael@0 39 }
michael@0 40 }
michael@0 41
michael@0 42 SkBlitMask::RowProc SkBlitMask::PlatformRowProcs(SkBitmap::Config dstConfig,
michael@0 43 SkMask::Format maskFormat,
michael@0 44 RowFlags flags) {
michael@0 45 return NULL;
michael@0 46 }

mercurial