diff options
author | 2009-11-04 20:51:06 +0000 | |
---|---|---|
committer | 2009-11-04 20:51:06 +0000 | |
commit | 9272761b22746d2d22439c26f5555028f8e824da (patch) | |
tree | 30761e0fea6eba421c7884e5f390d3f6a36d41c8 /src/core/SkBlitRow_D16.cpp | |
parent | e0f13eeb8e527cfd2541063ba2dd89c7d31d71ce (diff) |
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
Diffstat (limited to 'src/core/SkBlitRow_D16.cpp')
-rw-r--r-- | src/core/SkBlitRow_D16.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |