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

Side by Side Diff: include/effects/SkTileImageFilter.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 SkTileImageFilter_DEFINED 8 #ifndef SkTileImageFilter_DEFINED
9 #define SkTileImageFilter_DEFINED 9 #define SkTileImageFilter_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 */ 21 */
22 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilte r* input) 22 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilte r* input)
23 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {} 23 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
24 24
25 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix & ctm, 25 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix & ctm,
26 SkBitmap* dst, SkIPoint* offset) SK_OVERRIDE; 26 SkBitmap* dst, SkIPoint* offset) SK_OVERRIDE;
27 27
28 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter) 28 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter)
29 29
30 protected: 30 protected:
31 explicit SkTileImageFilter(SkFlattenableReadBuffer& buffer); 31 explicit SkTileImageFilter(SkReadBuffer& buffer);
32 32
33 virtual void flatten(SkFlattenableWriteBuffer& buffer) const SK_OVERRIDE; 33 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE;
34 34
35 private: 35 private:
36 SkRect fSrcRect; 36 SkRect fSrcRect;
37 SkRect fDstRect; 37 SkRect fDstRect;
38 }; 38 };
39 39
40 #endif 40 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698