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

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

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simplify xfermodes, fix SkLayerDrawLooper Created 6 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
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 16 matching lines...) Expand all
27 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context& ctx, 27 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context& ctx,
28 SkBitmap* dst, SkIPoint* offset) const SK_OVERRID E; 28 SkBitmap* dst, SkIPoint* offset) const SK_OVERRID E;
29 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 29 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
30 SkIRect* dst) const SK_OVERRIDE; 30 SkIRect* dst) const SK_OVERRIDE;
31 31
32 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter) 32 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter)
33 33
34 protected: 34 protected:
35 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilte r* input) 35 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilte r* input)
36 : INHERITED(1, &input), fSrcRect(srcRect), fDstRect(dstRect) {} 36 : INHERITED(1, &input), fSrcRect(srcRect), fDstRect(dstRect) {}
37 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
37 explicit SkTileImageFilter(SkReadBuffer& buffer); 38 explicit SkTileImageFilter(SkReadBuffer& buffer);
39 #endif
38 40
39 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; 41 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE;
40 42
41 private: 43 private:
42 SkRect fSrcRect; 44 SkRect fSrcRect;
43 SkRect fDstRect; 45 SkRect fDstRect;
44 }; 46 };
45 47
46 #endif 48 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698