From 9272761b22746d2d22439c26f5555028f8e824da Mon Sep 17 00:00:00 2001 From: "senorblanco@chromium.org" Date: Wed, 4 Nov 2009 20:51:06 +0000 Subject: SSE2 optimizations for 32bit blending blitters. This CL implements SSE2 optimizations for 3 of the 32bit blending blitters. It uses CPUID to detect for SSE2 at runtime. In order to accomodate runtime detection, it changes the platform procs from static arrays to static functions. It also includes an implementation of SkTime for Win32. http://codereview.appspot.com/144072 git-svn-id: http://skia.googlecode.com/svn/trunk@418 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkBlitRow_D16.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/SkBlitRow_D16.cpp') diff --git a/src/core/SkBlitRow_D16.cpp b/src/core/SkBlitRow_D16.cpp index 66ac90e29a..07c42ceb0b 100644 --- a/src/core/SkBlitRow_D16.cpp +++ b/src/core/SkBlitRow_D16.cpp @@ -242,13 +242,13 @@ SkBlitRow::Proc SkBlitRow::Factory(unsigned flags, SkBitmap::Config config) { switch (config) { case SkBitmap::kRGB_565_Config: - proc = gPlatform_565_Procs[flags]; + proc = PlatformProcs565(flags); if (NULL == proc) { proc = gDefault_565_Procs[flags]; } break; case SkBitmap::kARGB_4444_Config: - proc = gPlatform_4444_Procs[flags]; + proc = PlatformProcs4444(flags); if (NULL == proc) { proc = SkBlitRow_Factory_4444(flags); } -- cgit v1.2.3