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

Side by Side Diff: include/core/SkImageFilterUtils.h

Issue 185973003: Cleanup patch to move all of SkImageFilterUtils into SkImageFilter. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Oh, the Rietveld suckage Created 6 years, 9 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 | « include/core/SkImageFilter.h ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkImageFilterUtils_DEFINED
9 #define SkImageFilterUtils_DEFINED
10
11 #if SK_SUPPORT_GPU
12
13 #include "SkImageFilter.h"
14
15 class SkBitmap;
16 class GrTexture;
17 class SkImageFilter;
18
19 class SK_API SkImageFilterUtils {
20 public:
21 /**
22 * Wrap the given texture in a texture-backed SkBitmap.
23 */
24 static bool WrapTexture(GrTexture* texture, int width, int height, SkBitmap* result);
25
26 /**
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
29 * will be processed in software and uploaded to the GPU.
30 */
31 static bool GetInputResultGPU(const SkImageFilter* filter, SkImageFilter::Pr oxy* proxy,
32 const SkBitmap& src, const SkMatrix& ctm, SkBi tmap* result,
33 SkIPoint* offset);
34 };
35
36 #endif
37
38 #endif
OLDNEW
« no previous file with comments | « include/core/SkImageFilter.h ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698