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

Side by Side Diff: src/core/SkOpts.h

Issue 1415653003: Make SkBlurImageFilter capable of cropping during blur (Closed) Base URL: senorblanco-linux.mon:src/skia@blur-applyCropRect4
Patch Set: More ASAN fixes Created 5 years, 1 month 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 | « no previous file | src/effects/SkBlurImageFilter.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 2015 Google Inc. 2 * Copyright 2015 Google Inc.
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 #ifndef SkOpts_DEFINED 8 #ifndef SkOpts_DEFINED
9 #define SkOpts_DEFINED 9 #define SkOpts_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 // Returns a fast approximation of 1.0f/sqrtf(x). 26 // Returns a fast approximation of 1.0f/sqrtf(x).
27 extern float (*rsqrt)(float); 27 extern float (*rsqrt)(float);
28 28
29 // See SkUtils.h 29 // See SkUtils.h
30 extern void (*memset16)(uint16_t[], uint16_t, int); 30 extern void (*memset16)(uint16_t[], uint16_t, int);
31 extern void (*memset32)(uint32_t[], uint32_t, int); 31 extern void (*memset32)(uint32_t[], uint32_t, int);
32 32
33 // May return nullptr if we haven't specialized the given Mode. 33 // May return nullptr if we haven't specialized the given Mode.
34 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode); 34 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode);
35 35
36 typedef void (*BoxBlur)(const SkPMColor*, int, SkPMColor*, int, int, int, in t, int); 36 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP MColor*, int, int, int, int, int);
37 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx; 37 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx;
38 38
39 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int) ; 39 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int) ;
40 extern Morph dilate_x, dilate_y, erode_x, erode_y; 40 extern Morph dilate_x, dilate_y, erode_x, erode_y;
41 41
42 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, 42 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src,
43 int width, int height, size_t rowBytes); 43 int width, int height, size_t rowBytes);
44 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres sor::Format); 44 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres sor::Format);
45 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in t* y); 45 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in t* y);
46 46
47 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t, SkColor, int, int); 47 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t, SkColor, int, int);
48 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor ); 48 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor );
49 49
50 // This function is an optimized version of SkColorCubeFilter::filterSpan 50 // This function is an optimized version of SkColorCubeFilter::filterSpan
51 extern void (*color_cube_filter_span)(const SkPMColor[], 51 extern void (*color_cube_filter_span)(const SkPMColor[],
52 int, 52 int,
53 SkPMColor[], 53 SkPMColor[],
54 const int * [2], 54 const int * [2],
55 const SkScalar * [2], 55 const SkScalar * [2],
56 int, 56 int,
57 const SkColor*); 57 const SkColor*);
58 58
59 extern SkMatrix::MapPtsProc matrix_translate, matrix_scale_translate, matrix _affine; 59 extern SkMatrix::MapPtsProc matrix_translate, matrix_scale_translate, matrix _affine;
60 } 60 }
61 61
62 #endif//SkOpts_DEFINED 62 #endif//SkOpts_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkBlurImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698