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

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

Issue 768183002: Revert of Remove SK_SUPPORT_LEGACY_DEEPFLATTENING. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « include/effects/SkMatrixConvolutionImageFilter.h ('k') | include/effects/SkMergeImageFilter.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 2014 The Android Open Source Project 2 * Copyright 2014 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 SkMatrixImageFilter_DEFINED 8 #ifndef SkMatrixImageFilter_DEFINED
9 #define SkMatrixImageFilter_DEFINED 9 #define SkMatrixImageFilter_DEFINED
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; 37 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
38 38
39 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) 39 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter)
40 40
41 protected: 41 protected:
42 SkMatrixImageFilter(const SkMatrix& transform, 42 SkMatrixImageFilter(const SkMatrix& transform,
43 SkPaint::FilterLevel, 43 SkPaint::FilterLevel,
44 SkImageFilter* input, 44 SkImageFilter* input,
45 uint32_t uniqueID); 45 uint32_t uniqueID);
46 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
47 SkMatrixImageFilter(SkReadBuffer& buffer);
48 #endif
46 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 49 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
47 50
48 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 51 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
49 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 52 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E;
50 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 53 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
51 SkIRect* dst) const SK_OVERRIDE; 54 SkIRect* dst) const SK_OVERRIDE;
52 55
53 private: 56 private:
54 SkMatrix fTransform; 57 SkMatrix fTransform;
55 SkPaint::FilterLevel fFilterLevel; 58 SkPaint::FilterLevel fFilterLevel;
56 typedef SkImageFilter INHERITED; 59 typedef SkImageFilter INHERITED;
57 }; 60 };
58 61
59 #endif 62 #endif
OLDNEW
« no previous file with comments | « include/effects/SkMatrixConvolutionImageFilter.h ('k') | include/effects/SkMergeImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698