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

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

Issue 1709753002: Mark existing image filter entry points that will be going away with Deprecated (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 4 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
« no previous file with comments | « include/effects/SkPaintImageFilter.h ('k') | include/effects/SkTestImageFilters.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 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 onFilterImage(Proxy*, const SkBitmap& src, const Context&, SkBitmap* re sult, 64 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, Sk Bitmap* result,
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(SkBaseDevice*, const SkIRect& deviceBound s,
73 const Context&) const; 73 const Context&) const;
74 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi ceBounds, 74 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi ceBounds,
75 const Context&) const; 75 const Context&) const;
76 76
77 const SkPicture* fPicture; 77 const SkPicture* fPicture;
78 SkRect fCropRect; 78 SkRect fCropRect;
79 PictureResolution fPictureResolution; 79 PictureResolution fPictureResolution;
80 SkFilterQuality fFilterQuality; 80 SkFilterQuality fFilterQuality;
81 81
82 typedef SkImageFilter INHERITED; 82 typedef SkImageFilter INHERITED;
83 }; 83 };
84 84
85 #endif 85 #endif
OLDNEW
« no previous file with comments | « include/effects/SkPaintImageFilter.h ('k') | include/effects/SkTestImageFilters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698