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

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

Issue 1540203002: Revert of change all factories to return their base-class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/Sk2DPathEffect.h ('k') | include/effects/SkColorMatrixFilter.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 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 17 matching lines...) Expand all
28 The blur layer's dx/dy/radius aren't affected by the canvas 28 The blur layer's dx/dy/radius aren't affected by the canvas
29 transform. 29 transform.
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 static SkDrawLooper* Create(SkColor color, SkScalar sigma, SkScalar dx, SkSc alar dy, 38 static SkBlurDrawLooper* Create(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy,
39 uint32_t flags = kNone_BlurFlag) { 39 uint32_t flags = kNone_BlurFlag) {
40 return new SkBlurDrawLooper(color, sigma, dx, dy, flags); 40 return new SkBlurDrawLooper(color, sigma, dx, dy, flags);
41 } 41 }
42 42
43 virtual ~SkBlurDrawLooper(); 43 virtual ~SkBlurDrawLooper();
44 44
45 SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const overrid e; 45 SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const overrid e;
46 46
47 size_t contextSize() const override { return sizeof(BlurDrawLooperContext); } 47 size_t contextSize() const override { return sizeof(BlurDrawLooperContext); }
48 48
49 SK_TO_STRING_OVERRIDE() 49 SK_TO_STRING_OVERRIDE()
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 State fState; 81 State fState;
82 }; 82 };
83 83
84 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags); 84 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags);
85 void initEffects(); 85 void initEffects();
86 86
87 typedef SkDrawLooper INHERITED; 87 typedef SkDrawLooper INHERITED;
88 }; 88 };
89 89
90 #endif 90 #endif
OLDNEW
« no previous file with comments | « include/effects/Sk2DPathEffect.h ('k') | include/effects/SkColorMatrixFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698