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/SkMorphology_opts.h

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/effects/SkMorphologyImageFilter.cpp ('k') | src/opts/SkMorphology_opts_none.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 2013 The Android Open Source Project 2 * Copyright 2013 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 <SkColor.h> 8 #ifndef SkMorphology_opts_DEFINED
9 #define SkMorphology_opts_DEFINED
9 10
10 /** 11 #include <SkMorphologyImageFilter.h>
11 * All morphology procs have the same signature: src is the source buffer, dst t he
12 * destination buffer, radius is the morphology radius, width and height are the bounds
13 * of the destination buffer (in pixels), and srcStride and dstStride are the
14 * number of pixels per row in each buffer. All buffers are 8888.
15 */
16
17 typedef void (*SkMorphologyProc)(const SkPMColor* src, SkPMColor* dst, int radiu s,
18 int width, int height, int srcStride, int dstSt ride);
19 12
20 enum SkMorphologyProcType { 13 enum SkMorphologyProcType {
21 kDilateX_SkMorphologyProcType, 14 kDilateX_SkMorphologyProcType,
22 kDilateY_SkMorphologyProcType, 15 kDilateY_SkMorphologyProcType,
23 kErodeX_SkMorphologyProcType, 16 kErodeX_SkMorphologyProcType,
24 kErodeY_SkMorphologyProcType 17 kErodeY_SkMorphologyProcType
25 }; 18 };
26 19
27 SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type); 20 SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType t ype);
21
22 #endif
OLDNEW
« no previous file with comments | « src/effects/SkMorphologyImageFilter.cpp ('k') | src/opts/SkMorphology_opts_none.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698