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

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

Issue 51033004: add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2008 The Android Open Source Project 2 * Copyright 2008 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 8
9 #ifndef SkBlurDrawLooper_DEFINED 9 #ifndef SkBlurDrawLooper_DEFINED
10 #define SkBlurDrawLooper_DEFINED 10 #define SkBlurDrawLooper_DEFINED
(...skipping 19 matching lines...) Expand all
30 */ 30 */
31 kIgnoreTransform_BlurFlag = 0x01, 31 kIgnoreTransform_BlurFlag = 0x01,
32 kOverrideColor_BlurFlag = 0x02, 32 kOverrideColor_BlurFlag = 0x02,
33 kHighQuality_BlurFlag = 0x04, 33 kHighQuality_BlurFlag = 0x04,
34 /** mask for all blur flags */ 34 /** mask for all blur flags */
35 kAll_BlurFlag = 0x07 35 kAll_BlurFlag = 0x07
36 }; 36 };
37 37
38 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy, 38 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy,
39 uint32_t flags = kNone_BlurFlag); 39 uint32_t flags = kNone_BlurFlag);
40 40
robertphillips 2013/10/30 21:54:08 why not turn this on?
reed1 2013/10/31 15:23:23 I don't know the exact conversion into sigmas, and
41 // DEPRECATED - radius-based 41 // SK_ATTR_DEPRECATED("use sigma version")
42 SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color, 42 SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color,
43 uint32_t flags = kNone_BlurFlag); 43 uint32_t flags = kNone_BlurFlag);
44 virtual ~SkBlurDrawLooper(); 44 virtual ~SkBlurDrawLooper();
45 45
46 // overrides from SkDrawLooper 46 // overrides from SkDrawLooper
47 virtual void init(SkCanvas*); 47 virtual void init(SkCanvas*);
48 virtual bool next(SkCanvas*, SkPaint* paint); 48 virtual bool next(SkCanvas*, SkPaint* paint);
49 49
50 SK_DEVELOPER_TO_STRING() 50 SK_DEVELOPER_TO_STRING()
51 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) 51 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper)
(...skipping 15 matching lines...) Expand all
67 kDone 67 kDone
68 }; 68 };
69 State fState; 69 State fState;
70 70
71 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags); 71 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags);
72 72
73 typedef SkDrawLooper INHERITED; 73 typedef SkDrawLooper INHERITED;
74 }; 74 };
75 75
76 #endif 76 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698