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

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

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 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 28 matching lines...) Expand all
39 SK_TO_STRING_OVERRIDE() 39 SK_TO_STRING_OVERRIDE()
40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) 40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter)
41 41
42 protected: 42 protected:
43 SkMatrixImageFilter(const SkMatrix& transform, 43 SkMatrixImageFilter(const SkMatrix& transform,
44 SkPaint::FilterLevel, 44 SkPaint::FilterLevel,
45 SkImageFilter* input, 45 SkImageFilter* input,
46 uint32_t uniqueID); 46 uint32_t uniqueID);
47 void flatten(SkWriteBuffer&) const SK_OVERRIDE; 47 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
48 48
49 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 49 virtual bool onFilterImage(Proxy*, SkImage& src, const Context&,
50 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 50 SkAutoTUnref<SkImage>& result, SkIPoint* loc) con st SK_OVERRIDE;
51 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, 51 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
52 SkIRect* dst) const SK_OVERRIDE; 52 SkIRect* dst) const SK_OVERRIDE;
53 53
54 private: 54 private:
55 SkMatrix fTransform; 55 SkMatrix fTransform;
56 SkPaint::FilterLevel fFilterLevel; 56 SkPaint::FilterLevel fFilterLevel;
57 typedef SkImageFilter INHERITED; 57 typedef SkImageFilter INHERITED;
58 }; 58 };
59 59
60 #endif 60 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698