 Chromium Code Reviews
 Chromium Code Reviews Issue 290923002:
  Add missing include in SkBlurImage optimization  (Closed) 
  Base URL: https://skia.googlesource.com/skia.git@master
    
  
    Issue 290923002:
  Add missing include in SkBlurImage optimization  (Closed) 
  Base URL: https://skia.googlesource.com/skia.git@master| OLD | NEW | 
|---|---|
| 1 /* | 1 /* | 
| 2 * Copyright 2013 The Android Open Source Project | 2 * Copyright 2013 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 <emmintrin.h> | 8 #include <emmintrin.h> | 
| 9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" | 
| 10 #include "SkBlurImage_opts_SSE2.h" | 10 #include "SkBlurImage_opts_SSE2.h" | 
| 11 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" | 
| 12 #include "SkRect.h" | 12 #include "SkRect.h" | 
| 13 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 | |
| 14 #include <smmintrin.h> | |
| 
f(malita)
2014/05/20 22:05:01
This appears to be causing errors on Chromium's Ma
 
henrik.smiding
2014/05/21 09:00:37
The only way I can see this happening is if __SSE4
 | |
| 15 #endif | |
| 13 | 16 | 
| 14 namespace { | 17 namespace { | 
| 15 enum BlurDirection { | 18 enum BlurDirection { | 
| 16 kX, kY | 19 kX, kY | 
| 17 }; | 20 }; | 
| 18 | 21 | 
| 19 /* Helper function to spread the components of a 32-bit integer into the | 22 /* Helper function to spread the components of a 32-bit integer into the | 
| 20 * lower 8 bits of each 32-bit element of an SSE register. | 23 * lower 8 bits of each 32-bit element of an SSE register. | 
| 21 */ | 24 */ | 
| 22 inline __m128i expand(int a) { | 25 inline __m128i expand(int a) { | 
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 bool SkBoxBlurGetPlatformProcs_SSE2(SkBoxBlurProc* boxBlurX, | 106 bool SkBoxBlurGetPlatformProcs_SSE2(SkBoxBlurProc* boxBlurX, | 
| 104 SkBoxBlurProc* boxBlurY, | 107 SkBoxBlurProc* boxBlurY, | 
| 105 SkBoxBlurProc* boxBlurXY, | 108 SkBoxBlurProc* boxBlurXY, | 
| 106 SkBoxBlurProc* boxBlurYX) { | 109 SkBoxBlurProc* boxBlurYX) { | 
| 107 *boxBlurX = SkBoxBlur_SSE2<kX, kX>; | 110 *boxBlurX = SkBoxBlur_SSE2<kX, kX>; | 
| 108 *boxBlurY = SkBoxBlur_SSE2<kY, kY>; | 111 *boxBlurY = SkBoxBlur_SSE2<kY, kY>; | 
| 109 *boxBlurXY = SkBoxBlur_SSE2<kX, kY>; | 112 *boxBlurXY = SkBoxBlur_SSE2<kX, kY>; | 
| 110 *boxBlurYX = SkBoxBlur_SSE2<kY, kX>; | 113 *boxBlurYX = SkBoxBlur_SSE2<kY, kX>; | 
| 111 return true; | 114 return true; | 
| 112 } | 115 } | 
| OLD | NEW |