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

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

Issue 959873002: Clean up ColorRectProc plumbing. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simpler, platform procs specialize anyway Created 5 years, 10 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 254 }
255 255
256 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { 256 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() {
257 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) { 257 if (supports_simd(SK_CPU_SSE_LEVEL_SSE2)) {
258 return Color32_SSE2; 258 return Color32_SSE2;
259 } else { 259 } else {
260 return NULL; 260 return NULL;
261 } 261 }
262 } 262 }
263 263
264 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning
265
266 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() {
267 return NULL;
268 }
269
270 //////////////////////////////////////////////////////////////////////////////// 264 ////////////////////////////////////////////////////////////////////////////////
271 265
272 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT, 266 SkBlitMask::ColorProc SkBlitMask::PlatformColorProcs(SkColorType dstCT,
273 SkMask::Format maskFormat, 267 SkMask::Format maskFormat,
274 SkColor color) { 268 SkColor color) {
275 if (SkMask::kA8_Format != maskFormat) { 269 if (SkMask::kA8_Format != maskFormat) {
276 return NULL; 270 return NULL;
277 } 271 }
278 272
279 ColorProc proc = NULL; 273 ColorProc proc = NULL;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } else { 392 } else {
399 return SkPlatformXfermodeFactory_impl(rec, mode); 393 return SkPlatformXfermodeFactory_impl(rec, mode);
400 } 394 }
401 } 395 }
402 396
403 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); 397 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode);
404 398
405 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { 399 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) {
406 return NULL; 400 return NULL;
407 } 401 }
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