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

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

Issue 354193002: Refactor bitmap scaler to make it easier to migrate rest of chrome to use it (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « src/opts/SkBitmapProcState_opts_none.cpp ('k') | 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 2009 The Android Open Source Project 2 * Copyright 2009 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 "SkBitmapFilter_opts_SSE2.h" 8 #include "SkBitmapFilter_opts_SSE2.h"
9 #include "SkBitmapProcState_opts_SSE2.h" 9 #include "SkBitmapProcState_opts_SSE2.h"
10 #include "SkBitmapProcState_opts_SSSE3.h" 10 #include "SkBitmapProcState_opts_SSSE3.h"
11 #include "SkBitmapScaler.h"
11 #include "SkBlitMask.h" 12 #include "SkBlitMask.h"
12 #include "SkBlitRect_opts_SSE2.h" 13 #include "SkBlitRect_opts_SSE2.h"
13 #include "SkBlitRow.h" 14 #include "SkBlitRow.h"
14 #include "SkBlitRow_opts_SSE2.h" 15 #include "SkBlitRow_opts_SSE2.h"
15 #include "SkBlitRow_opts_SSE4.h" 16 #include "SkBlitRow_opts_SSE4.h"
16 #include "SkBlurImage_opts_SSE2.h" 17 #include "SkBlurImage_opts_SSE2.h"
17 #include "SkMorphology_opts.h" 18 #include "SkMorphology_opts.h"
18 #include "SkMorphology_opts_SSE2.h" 19 #include "SkMorphology_opts_SSE2.h"
19 #include "SkRTConf.h" 20 #include "SkRTConf.h"
20 #include "SkUtils.h" 21 #include "SkUtils.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 static int gSIMDLevel = get_SIMD_level(); 117 static int gSIMDLevel = get_SIMD_level();
117 return (minLevel <= gSIMDLevel); 118 return (minLevel <= gSIMDLevel);
118 #endif 119 #endif
119 } 120 }
120 } 121 }
121 122
122 //////////////////////////////////////////////////////////////////////////////// 123 ////////////////////////////////////////////////////////////////////////////////
123 124
124 SK_CONF_DECLARE( bool, c_hqfilter_sse, "bitmap.filter.highQualitySSE", false, "U se SSE optimized version of high quality image filters"); 125 SK_CONF_DECLARE( bool, c_hqfilter_sse, "bitmap.filter.highQualitySSE", false, "U se SSE optimized version of high quality image filters");
125 126
126 void SkBitmapProcState::platformConvolutionProcs(SkConvolutionProcs* procs) { 127 void SkBitmapScaler::PlatformConvolutionProcs(SkConvolutionProcs* procs) {
127 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 128 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
128 procs->fExtraHorizontalReads = 3; 129 procs->fExtraHorizontalReads = 3;
129 procs->fConvolveVertically = &convolveVertically_SSE2; 130 procs->fConvolveVertically = &convolveVertically_SSE2;
130 procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_SSE2; 131 procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_SSE2;
131 procs->fConvolveHorizontally = &convolveHorizontally_SSE2; 132 procs->fConvolveHorizontally = &convolveHorizontally_SSE2;
132 procs->fApplySIMDPadding = &applySIMDPadding_SSE2; 133 procs->fApplySIMDPadding = &applySIMDPadding_SSE2;
133 } 134 }
134 } 135 }
135 136
136 //////////////////////////////////////////////////////////////////////////////// 137 ////////////////////////////////////////////////////////////////////////////////
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 } else { 388 } else {
388 return SkPlatformXfermodeFactory_impl(rec, mode); 389 return SkPlatformXfermodeFactory_impl(rec, mode);
389 } 390 }
390 } 391 }
391 392
392 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 393 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
393 394
394 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 395 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
395 return NULL; 396 return NULL;
396 } 397 }
OLDNEW
« no previous file with comments | « src/opts/SkBitmapProcState_opts_none.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698