OLD | NEW |
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 #ifndef SkImageFilterUtils_DEFINED | 8 #ifndef SkImageFilterUtils_DEFINED |
9 #define SkImageFilterUtils_DEFINED | 9 #define SkImageFilterUtils_DEFINED |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 /** | 21 /** |
22 * Wrap the given texture in a texture-backed SkBitmap. | 22 * Wrap the given texture in a texture-backed SkBitmap. |
23 */ | 23 */ |
24 static bool WrapTexture(GrTexture* texture, int width, int height, SkBitmap*
result); | 24 static bool WrapTexture(GrTexture* texture, int width, int height, SkBitmap*
result); |
25 | 25 |
26 /** | 26 /** |
27 * Recursively evaluate the given filter on the GPU. If filter is NULL, | 27 * Recursively evaluate the given filter on the GPU. If filter is NULL, |
28 * this function returns src. If the filter has no GPU implementation, it | 28 * this function returns src. If the filter has no GPU implementation, it |
29 * will be processed in software and uploaded to the GPU. | 29 * will be processed in software and uploaded to the GPU. |
30 */ | 30 */ |
31 static bool GetInputResultGPU(SkImageFilter* filter, SkImageFilter::Proxy* p
roxy, | 31 static bool GetInputResultGPU(const SkImageFilter* filter, SkImageFilter::Pr
oxy* proxy, |
32 const SkBitmap& src, const SkMatrix& ctm, SkBi
tmap* result, | 32 const SkBitmap& src, const SkMatrix& ctm, SkBi
tmap* result, |
33 SkIPoint* offset); | 33 SkIPoint* offset); |
34 }; | 34 }; |
35 | 35 |
36 #endif | 36 #endif |
37 | 37 |
38 #endif | 38 #endif |
OLD | NEW |