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

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

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 years, 10 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
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 28 matching lines...) Expand all
39 SkIPoint* offset) SK_OVERRIDE; 39 SkIPoint* offset) SK_OVERRIDE;
40 virtual void computeFastBounds(const SkRect& src, SkRect* dst) const SK_OVER RIDE; 40 virtual void computeFastBounds(const SkRect& src, SkRect* dst) const SK_OVER RIDE;
41 41
42 #if SK_SUPPORT_GPU 42 #if SK_SUPPORT_GPU
43 virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; } 43 virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; }
44 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm, 44 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatri x& ctm,
45 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 45 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
46 #endif 46 #endif
47 47
48 protected: 48 protected:
49 explicit SkDisplacementMapEffect(SkFlattenableReadBuffer& buffer); 49 explicit SkDisplacementMapEffect(SkReadBuffer& buffer);
50 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 50 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
51 51
52 private: 52 private:
53 ChannelSelectorType fXChannelSelector; 53 ChannelSelectorType fXChannelSelector;
54 ChannelSelectorType fYChannelSelector; 54 ChannelSelectorType fYChannelSelector;
55 SkScalar fScale; 55 SkScalar fScale;
56 typedef SkImageFilter INHERITED; 56 typedef SkImageFilter INHERITED;
57 SkImageFilter* getDisplacementInput() { return getInput(0); } 57 SkImageFilter* getDisplacementInput() { return getInput(0); }
58 SkImageFilter* getColorInput() { return getInput(1); } 58 SkImageFilter* getColorInput() { return getInput(1); }
59 const SkImageFilter* getDisplacementInput() const { return getInput(0); } 59 const SkImageFilter* getDisplacementInput() const { return getInput(0); }
60 const SkImageFilter* getColorInput() const { return getInput(1); } 60 const SkImageFilter* getColorInput() const { return getInput(1); }
61 }; 61 };
62 62
63 #endif 63 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698