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

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

Issue 681643003: Fix bounds computation of all 0-input filters. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 6 years, 1 month 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/SkBitmapSource.h ('k') | src/core/SkImageFilter.cpp » ('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 2013 The Android Open Source Project 2 * Copyright 2013 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 SkPictureImageFilter_DEFINED 8 #ifndef SkPictureImageFilter_DEFINED
9 #define SkPictureImageFilter_DEFINED 9 #define SkPictureImageFilter_DEFINED
10 10
(...skipping 28 matching lines...) Expand all
39 * decoding, the decoder must be set on the SkReadBuffer parameter by calli ng 39 * decoding, the decoder must be set on the SkReadBuffer parameter by calli ng
40 * SkReadBuffer::setBitmapDecoder() before calling this constructor. 40 * SkReadBuffer::setBitmapDecoder() before calling this constructor.
41 * @param SkReadBuffer Serialized picture data. 41 * @param SkReadBuffer Serialized picture data.
42 */ 42 */
43 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING 43 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
44 explicit SkPictureImageFilter(SkReadBuffer&); 44 explicit SkPictureImageFilter(SkReadBuffer&);
45 #endif 45 #endif
46 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 46 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
47 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 47 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
48 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE; 48 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE;
49 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
50 SkIRect* dst) const SK_OVERRIDE;
51 49
52 private: 50 private:
53 const SkPicture* fPicture; 51 const SkPicture* fPicture;
54 SkRect fCropRect; 52 SkRect fCropRect;
55 typedef SkImageFilter INHERITED; 53 typedef SkImageFilter INHERITED;
56 }; 54 };
57 55
58 #endif 56 #endif
OLDNEW
« no previous file with comments | « include/effects/SkBitmapSource.h ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698