|
Factory methods for heap-allocated SkPathEffect and SkXfermode 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 SkPathEffect, SkXfermode and
their subclasses non-public and instead provides factory methods for
creating these objects on the heap. We temporarily keep the constructors
of the following classes public to not break Chrome/Blink:
SkXfermode
SkCornerPathEffect
SkDashPathEffect
BUG= skia:2187
Committed: http://code.google.com/p/skia/source/detail?r=13519
Total comments: 3
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+221 lines, -113 lines) |
Patch |
|
M |
bench/DashBench.cpp
|
View
|
1
2
3
4
|
5 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
experimental/PdfViewer/SkPdfGraphicsState.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/dashcubics.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/dashing.cpp
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/patheffects.cpp
|
View
|
|
5 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
gm/texteffects.cpp
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/core/SkPathEffect.h
|
View
|
1
2
3
4
5
6
|
7 chunks |
+20 lines, -7 lines |
0 comments
|
Download
|
|
M |
include/core/SkXfermode.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+13 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/effects/Sk1DPathEffect.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/Sk2DPathEffect.h
|
View
|
1
2
3
4
5
6
|
6 chunks |
+25 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/effects/SkAvoidXfermode.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkCornerPathEffect.h
|
View
|
1
2
3
4
5
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkDashPathEffect.h
|
View
|
1
2
3
4
5
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
include/effects/SkDiscretePathEffect.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkPixelXorXfermode.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
samplecode/SampleAll.cpp
|
View
|
1
2
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleAvoid.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
samplecode/SamplePathEffects.cpp
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
samplecode/SamplePathUtils.cpp
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleSlides.cpp
|
View
|
1
2
3
4
|
8 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/animator/SkDrawDash.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/animator/SkDrawDiscrete.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/animator/SkDrawExtraPathEffect.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/core/SkXfermode.cpp
|
View
|
|
9 chunks |
+21 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/core/SkXfermode_proccoeff.h
|
View
|
|
2 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/effects/SkArithmeticMode.cpp
|
View
|
|
3 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/utils/debugger/SkDebugCanvas.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/DrawPathTest.cpp
|
View
|
1
|
4 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
tests/XfermodeTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 27 (0 generated)
|