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

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

Issue 789163006: Add toString methods to SkImageFilter-derived classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make sure leading 0's aren't stripped off colors Created 6 years 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/SkOffsetImageFilter.h ('k') | include/effects/SkRectShaderImageFilter.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 28 matching lines...) Expand all
39 * dest rect; only the CTM is applied.) 39 * dest rect; only the CTM is applied.)
40 */ 40 */
41 static SkPictureImageFilter* CreateForLocalSpace(const SkPicture* picture, 41 static SkPictureImageFilter* CreateForLocalSpace(const SkPicture* picture,
42 const SkRect& cropRect, 42 const SkRect& cropRect,
43 SkPaint::FilterLevel filter Level, 43 SkPaint::FilterLevel filter Level,
44 uint32_t uniqueID = 0) { 44 uint32_t uniqueID = 0) {
45 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect, uniqueID, 45 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect, uniqueID,
46 kLocalSpace_PictureResolution, filterLevel)); 46 kLocalSpace_PictureResolution, filterLevel));
47 } 47 }
48 48
49 SK_TO_STRING_OVERRIDE()
49 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureImageFilter) 50 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureImageFilter)
50 51
51 protected: 52 protected:
52 enum PictureResolution { 53 enum PictureResolution {
53 kDeviceSpace_PictureResolution, 54 kDeviceSpace_PictureResolution,
54 kLocalSpace_PictureResolution 55 kLocalSpace_PictureResolution
55 }; 56 };
56 57
57 explicit SkPictureImageFilter(const SkPicture* picture, uint32_t uniqueID); 58 explicit SkPictureImageFilter(const SkPicture* picture, uint32_t uniqueID);
58 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, uint3 2_t uniqueID, 59 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, uint3 2_t uniqueID,
(...skipping 18 matching lines...) Expand all
77 const Context&) const; 78 const Context&) const;
78 79
79 const SkPicture* fPicture; 80 const SkPicture* fPicture;
80 SkRect fCropRect; 81 SkRect fCropRect;
81 PictureResolution fPictureResolution; 82 PictureResolution fPictureResolution;
82 SkPaint::FilterLevel fFilterLevel; 83 SkPaint::FilterLevel fFilterLevel;
83 typedef SkImageFilter INHERITED; 84 typedef SkImageFilter INHERITED;
84 }; 85 };
85 86
86 #endif 87 #endif
OLDNEW
« no previous file with comments | « include/effects/SkOffsetImageFilter.h ('k') | include/effects/SkRectShaderImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698