| 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, const SkBitmap& src, SkBitmap* result); | 31 static bool GetInputResultGPU(SkImageFilter* filter, SkImageFilter::Proxy* p
roxy, |
| 32 const SkBitmap& src, SkBitmap* result, SkIPoin
t* offset); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 #endif | 35 #endif |
| 35 | 36 |
| 36 #endif | 37 #endif |
| OLD | NEW |