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

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

Issue 290923002: Add missing include in SkBlurImage optimization (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added build checks... Created 6 years, 7 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 | « no previous file | no next file » | 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 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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698