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

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

Issue 1779743002: Switch SkPictureImageFilter over to new onFilterImage interface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update for sk_sp Created 4 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 virtual ~SkPictureImageFilter(); 55 virtual ~SkPictureImageFilter();
56 56
57 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. 57 /* Constructs an SkPictureImageFilter object from an SkReadBuffer.
58 * Note: If the SkPictureImageFilter object construction requires bitmap 58 * Note: If the SkPictureImageFilter object construction requires bitmap
59 * decoding, the decoder must be set on the SkReadBuffer parameter by calli ng 59 * decoding, the decoder must be set on the SkReadBuffer parameter by calli ng
60 * SkReadBuffer::setBitmapDecoder() before calling this constructor. 60 * SkReadBuffer::setBitmapDecoder() before calling this constructor.
61 * @param SkReadBuffer Serialized picture data. 61 * @param SkReadBuffer Serialized picture data.
62 */ 62 */
63 void flatten(SkWriteBuffer&) const override; 63 void flatten(SkWriteBuffer&) const override;
64 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, Sk Bitmap* result, 64 SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&,
65 SkIPoint* offset) const override; 65 SkIPoint* offset) const override;
66 66
67 private: 67 private:
68 explicit SkPictureImageFilter(const SkPicture* picture); 68 explicit SkPictureImageFilter(const SkPicture* picture);
69 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, 69 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect,
70 PictureResolution, SkFilterQuality); 70 PictureResolution, SkFilterQuality);
71 71
72 void drawPictureAtDeviceResolution(SkBaseDevice*, const SkIRect& deviceBound s, 72 void drawPictureAtDeviceResolution(SkCanvas* canvas,
73 const SkIRect& deviceBounds,
73 const Context&) const; 74 const Context&) const;
74 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi ceBounds, 75 void drawPictureAtLocalResolution(SkSpecialImage* source,
76 SkCanvas*,
77 const SkIRect& deviceBounds,
75 const Context&) const; 78 const Context&) const;
76 79
77 const SkPicture* fPicture; 80 const SkPicture* fPicture;
78 SkRect fCropRect; 81 SkRect fCropRect;
79 PictureResolution fPictureResolution; 82 PictureResolution fPictureResolution;
80 SkFilterQuality fFilterQuality; 83 SkFilterQuality fFilterQuality;
81 84
82 typedef SkImageFilter INHERITED; 85 typedef SkImageFilter INHERITED;
83 }; 86 };
84 87
85 #endif 88 #endif
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkPictureImageFilter.cpp » ('j') | src/effects/SkPictureImageFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698