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

Side by Side Diff: include/effects/SkBlendImageFilter.h

Issue 15995026: Image filters: implement offsets in GPU path. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Wrap lines at 100 chars. Created 7 years, 5 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/effects/SkBicubicImageFilter.h ('k') | include/effects/SkBlurImageFilter.h » ('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 2012 The Android Open Source Project 2 * Copyright 2012 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 SkBlendImageFilter_DEFINED 8 #ifndef SkBlendImageFilter_DEFINED
9 #define SkBlendImageFilter_DEFINED 9 #define SkBlendImageFilter_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlendImageFilter) 27 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlendImageFilter)
28 28
29 virtual bool onFilterImage(Proxy* proxy, 29 virtual bool onFilterImage(Proxy* proxy,
30 const SkBitmap& src, 30 const SkBitmap& src,
31 const SkMatrix& ctm, 31 const SkMatrix& ctm,
32 SkBitmap* dst, 32 SkBitmap* dst,
33 SkIPoint* offset) SK_OVERRIDE; 33 SkIPoint* offset) SK_OVERRIDE;
34 #if SK_SUPPORT_GPU 34 #if SK_SUPPORT_GPU
35 virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; } 35 virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; }
36 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* res ult) SK_OVERRIDE; 36 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* res ult,
37 SkIPoint* offset) SK_OVERRIDE;
37 #endif 38 #endif
38 39
39 protected: 40 protected:
40 explicit SkBlendImageFilter(SkFlattenableReadBuffer& buffer); 41 explicit SkBlendImageFilter(SkFlattenableReadBuffer& buffer);
41 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 42 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
42 43
43 private: 44 private:
44 Mode fMode; 45 Mode fMode;
45 typedef SkImageFilter INHERITED; 46 typedef SkImageFilter INHERITED;
46 SkImageFilter* getBackgroundInput() { return getInput(0); } 47 SkImageFilter* getBackgroundInput() { return getInput(0); }
47 SkImageFilter* getForegroundInput() { return getInput(1); } 48 SkImageFilter* getForegroundInput() { return getInput(1); }
48 }; 49 };
49 50
50 #endif 51 #endif
OLDNEW
« no previous file with comments | « include/effects/SkBicubicImageFilter.h ('k') | include/effects/SkBlurImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698