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

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

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « include/core/SkMatrixImageFilter.h ('k') | include/effects/SkBlurImageFilter.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 2012 The Android Open Source Project 2 * Copyright 2012 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 SkBitmapSource_DEFINED 8 #ifndef SkBitmapSource_DEFINED
9 #define SkBitmapSource_DEFINED 9 #define SkBitmapSource_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 void computeFastBounds(const SkRect& src, SkRect* dst) const SK_OVERRIDE; 23 void computeFastBounds(const SkRect& src, SkRect* dst) const SK_OVERRIDE;
24 24
25 SK_TO_STRING_OVERRIDE() 25 SK_TO_STRING_OVERRIDE()
26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapSource) 26 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapSource)
27 27
28 protected: 28 protected:
29 explicit SkBitmapSource(const SkBitmap& bitmap); 29 explicit SkBitmapSource(const SkBitmap& bitmap);
30 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect); 30 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
31 void flatten(SkWriteBuffer&) const SK_OVERRIDE; 31 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
32 32
33 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 33 virtual bool onFilterImage(Proxy*, const SkImage* src, const Context&,
34 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE; 34 SkAutoTUnref<const SkImage>& result, SkIPoint* of fset) const SK_OVERRIDE;
35 35
36 private: 36 private:
37 SkBitmap fBitmap; 37 SkBitmap fBitmap;
38 SkRect fSrcRect, fDstRect; 38 SkRect fSrcRect, fDstRect;
39 typedef SkImageFilter INHERITED; 39 typedef SkImageFilter INHERITED;
40 }; 40 };
41 41
42 #endif 42 #endif
OLDNEW
« no previous file with comments | « include/core/SkMatrixImageFilter.h ('k') | include/effects/SkBlurImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698