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

Side by Side Diff: include/effects/SkBitmapSource.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 | « expectations/gm/ignored-tests.txt ('k') | include/effects/SkPictureImageFilter.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 16 matching lines...) Expand all
27 protected: 27 protected:
28 explicit SkBitmapSource(const SkBitmap& bitmap); 28 explicit SkBitmapSource(const SkBitmap& bitmap);
29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect); 29 SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, const SkRect& dstRect);
30 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING 30 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
31 explicit SkBitmapSource(SkReadBuffer& buffer); 31 explicit SkBitmapSource(SkReadBuffer& buffer);
32 #endif 32 #endif
33 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 33 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
34 34
35 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 35 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
36 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE; 36 SkBitmap* result, SkIPoint* offset) const SK_OVER RIDE;
37 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect * dst) const SK_OVERRIDE;
38 37
39 private: 38 private:
40 SkBitmap fBitmap; 39 SkBitmap fBitmap;
41 SkRect fSrcRect, fDstRect; 40 SkRect fSrcRect, fDstRect;
42 typedef SkImageFilter INHERITED; 41 typedef SkImageFilter INHERITED;
43 }; 42 };
44 43
45 #endif 44 #endif
OLDNEW
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | include/effects/SkPictureImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698