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

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

Issue 22209002: Added ctm matrix to GPU path (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Removed dummy matrix Created 7 years, 4 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/SkBlurImageFilter.h ('k') | include/effects/SkMorphologyImageFilter.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 2013 Google Inc. 2 * Copyright 2013 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 SkDisplacementMapEffect_DEFINED 8 #ifndef SkDisplacementMapEffect_DEFINED
9 #define SkDisplacementMapEffect_DEFINED 9 #define SkDisplacementMapEffect_DEFINED
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDisplacementMapEffect) 32 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDisplacementMapEffect)
33 33
34 virtual bool onFilterImage(Proxy* proxy, 34 virtual bool onFilterImage(Proxy* proxy,
35 const SkBitmap& src, 35 const SkBitmap& src,
36 const SkMatrix& ctm, 36 const SkMatrix& ctm,
37 SkBitmap* dst, 37 SkBitmap* dst,
38 SkIPoint* offset) SK_OVERRIDE; 38 SkIPoint* offset) SK_OVERRIDE;
39 #if SK_SUPPORT_GPU 39 #if SK_SUPPORT_GPU
40 virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; } 40 virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; }
41 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* res ult, 41 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm,
42 SkIPoint* offset) SK_OVERRIDE; 42 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
43 #endif 43 #endif
44 44
45 protected: 45 protected:
46 explicit SkDisplacementMapEffect(SkFlattenableReadBuffer& buffer); 46 explicit SkDisplacementMapEffect(SkFlattenableReadBuffer& buffer);
47 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 47 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
48 48
49 private: 49 private:
50 ChannelSelectorType fXChannelSelector; 50 ChannelSelectorType fXChannelSelector;
51 ChannelSelectorType fYChannelSelector; 51 ChannelSelectorType fYChannelSelector;
52 SkScalar fScale; 52 SkScalar fScale;
53 typedef SkImageFilter INHERITED; 53 typedef SkImageFilter INHERITED;
54 SkImageFilter* getDisplacementInput() { return getInput(0); } 54 SkImageFilter* getDisplacementInput() { return getInput(0); }
55 SkImageFilter* getColorInput() { return getInput(1); } 55 SkImageFilter* getColorInput() { return getInput(1); }
56 }; 56 };
57 57
58 #endif 58 #endif
OLDNEW
« no previous file with comments | « include/effects/SkBlurImageFilter.h ('k') | include/effects/SkMorphologyImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698