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

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

Issue 1104183004: De-proc Color32 (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: duh Created 5 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 | « 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) { 251 if (supports_simd(SK_CPU_SSE_LEVEL_SSE41)) {
252 return platform_32_procs_SSE4[flags]; 252 return platform_32_procs_SSE4[flags];
253 } else 253 } else
254 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 254 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
255 return platform_32_procs_SSE2[flags]; 255 return platform_32_procs_SSE2[flags];
256 } else { 256 } else {
257 return NULL; 257 return NULL;
258 } 258 }
259 } 259 }
260 260
261 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() {
262 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
263 return Color32_SSE2;
264 } else {
265 return NULL;
266 }
267 }
268
269 //////////////////////////////////////////////////////////////////////////////// 261 ////////////////////////////////////////////////////////////////////////////////
270 262
271 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT, 263 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT,
272 SkMask::Format maskFormat, 264 SkMask::Format maskFormat,
273 SkColor color) { 265 SkColor color) {
274 if (SkMask::kA8_Format != maskFormat) { 266 if (SkMask::kA8_Format != maskFormat) {
275 return NULL; 267 return NULL;
276 } 268 }
277 269
278 ColorProc proc = NULL; 270 ColorProc proc = NULL;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } else { 389 } else {
398 return SkPlatformXfermodeFactory_impl(rec, mode); 390 return SkPlatformXfermodeFactory_impl(rec, mode);
399 } 391 }
400 } 392 }
401 393
402 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 394 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
403 395
404 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 396 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
405 return NULL; 397 return NULL;
406 } 398 }
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