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

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

Issue 135013004: Refactor SkMorphologyImageFilter, CPU and GPU paths. This required making opts/ dependent on effect… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix android build Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/opts/SkMorphology_opts_none.cpp ('k') | src/opts/opts_check_arm.cpp » ('j') | 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 "SkBitmapProcState_opts_SSE2.h" 8 #include "SkBitmapProcState_opts_SSE2.h"
9 #include "SkBitmapProcState_opts_SSSE3.h" 9 #include "SkBitmapProcState_opts_SSSE3.h"
10 #include "SkBitmapFilter_opts_SSE2.h" 10 #include "SkBitmapFilter_opts_SSE2.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } 244 }
245 245
246 SkMemset32Proc SkMemset32GetPlatformProc() { 246 SkMemset32Proc SkMemset32GetPlatformProc() {
247 if (cachedHasSSE2()) { 247 if (cachedHasSSE2()) {
248 return sk_memset32_SSE2; 248 return sk_memset32_SSE2;
249 } else { 249 } else {
250 return NULL; 250 return NULL;
251 } 251 }
252 } 252 }
253 253
254 SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type) { 254 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype) {
255 if (!cachedHasSSE2()) { 255 if (!cachedHasSSE2()) {
256 return NULL; 256 return NULL;
257 } 257 }
258 switch (type) { 258 switch (type) {
259 case kDilateX_SkMorphologyProcType: 259 case kDilateX_SkMorphologyProcType:
260 return SkDilateX_SSE2; 260 return SkDilateX_SSE2;
261 case kDilateY_SkMorphologyProcType: 261 case kDilateY_SkMorphologyProcType:
262 return SkDilateY_SSE2; 262 return SkDilateY_SSE2;
263 case kErodeX_SkMorphologyProcType: 263 case kErodeX_SkMorphologyProcType:
264 return SkErodeX_SSE2; 264 return SkErodeX_SSE2;
(...skipping 20 matching lines...) Expand all
285 285
286 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning 286 SkBlitRow::ColorRectProc PlatformColorRectProcFactory(); // suppress warning
287 287
288 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { 288 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() {
289 if (cachedHasSSE2()) { 289 if (cachedHasSSE2()) {
290 return ColorRect32_SSE2; 290 return ColorRect32_SSE2;
291 } else { 291 } else {
292 return NULL; 292 return NULL;
293 } 293 }
294 } 294 }
OLDNEW
« no previous file with comments | « src/opts/SkMorphology_opts_none.cpp ('k') | src/opts/opts_check_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698