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

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

Issue 847443003: rename blitrow::proc and add (uncalled) hook for colorproc16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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/SkBlitRow_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"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 /* Check fShaderProc32 */ 199 /* Check fShaderProc32 */
200 if (c_hqfilter_sse) { 200 if (c_hqfilter_sse) {
201 if (fShaderProc32 == highQualityFilter32) { 201 if (fShaderProc32 == highQualityFilter32) {
202 fShaderProc32 = highQualityFilter_SSE2; 202 fShaderProc32 = highQualityFilter_SSE2;
203 } 203 }
204 } 204 }
205 } 205 }
206 206
207 //////////////////////////////////////////////////////////////////////////////// 207 ////////////////////////////////////////////////////////////////////////////////
208 208
209 static SkBlitRow::Proc platform_16_procs[] = { 209 static SkBlitRow::Proc16 platform_16_procs[] = {
210 S32_D565_Opaque_SSE2, // S32_D565_Opaque 210 S32_D565_Opaque_SSE2, // S32_D565_Opaque
211 NULL, // S32_D565_Blend 211 NULL, // S32_D565_Blend
212 S32A_D565_Opaque_SSE2, // S32A_D565_Opaque 212 S32A_D565_Opaque_SSE2, // S32A_D565_Opaque
213 NULL, // S32A_D565_Blend 213 NULL, // S32A_D565_Blend
214 S32_D565_Opaque_Dither_SSE2, // S32_D565_Opaque_Dither 214 S32_D565_Opaque_Dither_SSE2, // S32_D565_Opaque_Dither
215 NULL, // S32_D565_Blend_Dither 215 NULL, // S32_D565_Blend_Dither
216 S32A_D565_Opaque_Dither_SSE2, // S32A_D565_Opaque_Dither 216 S32A_D565_Opaque_Dither_SSE2, // S32A_D565_Opaque_Dither
217 NULL, // S32A_D565_Blend_Dither 217 NULL, // S32A_D565_Blend_Dither
218 }; 218 };
219 219
220 SkBlitRow::Proc SkBlitRow::PlatformProcs565(unsigned flags) { 220 SkBlitRow::Proc16 SkBlitRow::PlatformFactory565(unsigned flags) {
221 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 221 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
222 return platform_16_procs[flags]; 222 return platform_16_procs[flags];
223 } else { 223 } else {
224 return NULL; 224 return NULL;
225 } 225 }
226 } 226 }
227 227
228 SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) {
229 return NULL;
230 }
231
228 static SkBlitRow::Proc32 platform_32_procs_SSE2[] = { 232 static SkBlitRow::Proc32 platform_32_procs_SSE2[] = {
229 NULL, // S32_Opaque, 233 NULL, // S32_Opaque,
230 S32_Blend_BlitRow32_SSE2, // S32_Blend, 234 S32_Blend_BlitRow32_SSE2, // S32_Blend,
231 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque 235 S32A_Opaque_BlitRow32_SSE2, // S32A_Opaque
232 S32A_Blend_BlitRow32_SSE2, // S32A_Blend, 236 S32A_Blend_BlitRow32_SSE2, // S32A_Blend,
233 }; 237 };
234 238
235 #if defined(SK_ATT_ASM_SUPPORTED) 239 #if defined(SK_ATT_ASM_SUPPORTED)
236 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = { 240 static SkBlitRow::Proc32 platform_32_procs_SSE4[] = {
237 NULL, // S32_Opaque, 241 NULL, // S32_Opaque,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 } else { 410 } else {
407 return SkPlatformXfermodeFactory_impl(rec, mode); 411 return SkPlatformXfermodeFactory_impl(rec, mode);
408 } 412 }
409 } 413 }
410 414
411 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 415 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
412 416
413 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 417 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
414 return NULL; 418 return NULL;
415 } 419 }
OLDNEW
« no previous file with comments | « src/opts/SkBlitRow_opts_none.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698