|
Factory methods for heap-allocated SkMaskFilter objects.
This is part of an effort to ensure that all SkPaint effects can only be
allocated on the heap.
This patch makes the constructors of SkMaskFilter and its subclasses non-public
and instead provides factory methods for creating these objects on the heap. We
temporarily keep constructor of publicly visible classes public behind a flag.
BUG= skia:2187
Committed: http://code.google.com/p/skia/source/detail?r=13527
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+48 lines, -28 lines) |
Patch |
|
M |
gm/samplerstress.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/core/SkMaskFilter.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
include/effects/SkEmbossMaskFilter.h
|
View
|
1
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/effects/SkKernel33MaskFilter.h
|
View
|
|
4 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
|
M |
include/effects/SkStippleMaskFilter.h
|
View
|
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkTableMaskFilter.h
|
View
|
1
|
3 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleAll.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
samplecode/SampleEmboss.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkEmbossMaskFilter.cpp
|
View
|
1
|
2 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
|
M |
src/views/SkWidgets.cpp
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|