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

Side by Side Diff: include/effects/SkRectShaderImageFilter.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/SkPictureImageFilter.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 Google Inc. 2 * Copyright 2013 Google Inc.
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 SkRectShaderImageFilter_DEFINED 8 #ifndef SkRectShaderImageFilter_DEFINED
9 #define SkRectShaderImageFilter_DEFINED 9 #define SkRectShaderImageFilter_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 * @param rect Rectangle of output pixels in which to apply the shader. 24 * @param rect Rectangle of output pixels in which to apply the shader.
25 * If NULL or a given crop edge is not specified, the source 25 * If NULL or a given crop edge is not specified, the source
26 * primitive's bounds are used instead. 26 * primitive's bounds are used instead.
27 */ 27 */
28 SK_ATTR_DEPRECATED("use Create(SkShader*, const CropRect*)") 28 SK_ATTR_DEPRECATED("use Create(SkShader*, const CropRect*)")
29 static SkRectShaderImageFilter* Create(SkShader* s, const SkRect& rect); 29 static SkRectShaderImageFilter* Create(SkShader* s, const SkRect& rect);
30 30
31 static SkRectShaderImageFilter* Create(SkShader* s, const CropRect* rect = N ULL, uint32_t uniqueID = 0); 31 static SkRectShaderImageFilter* Create(SkShader* s, const CropRect* rect = N ULL, uint32_t uniqueID = 0);
32 virtual ~SkRectShaderImageFilter(); 32 virtual ~SkRectShaderImageFilter();
33 33
34 SK_TO_STRING_OVERRIDE()
34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRectShaderImageFilter) 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRectShaderImageFilter)
35 36
36 protected: 37 protected:
37 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 38 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
38 39
39 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, 40 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
40 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E; 41 SkBitmap* result, SkIPoint* loc) const SK_OVERRID E;
41 42
42 private: 43 private:
43 SkRectShaderImageFilter(SkShader* s, const CropRect* rect, uint32_t uniqueID = 0); 44 SkRectShaderImageFilter(SkShader* s, const CropRect* rect, uint32_t uniqueID = 0);
44 SkShader* fShader; 45 SkShader* fShader;
45 46
46 typedef SkImageFilter INHERITED; 47 typedef SkImageFilter INHERITED;
47 }; 48 };
48 49
49 #endif 50 #endif
OLDNEW
« no previous file with comments | « include/effects/SkPictureImageFilter.h ('k') | include/effects/SkTestImageFilters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698