|
Rewrite SkTRegistry to take any trivially-copyable type.
Obviously these are all currently function pointers of type T(*)(P) for various
T and P. In bench refactoring, I'm trying to register a function pointer of
type T(*)(), which can't be done as is (passing P=void doesn't work). This
also lets us register things like primitives, which is conceivable useful.
BUG=
R=reed@google.com, scroggo@google.com
Committed: https://code.google.com/p/skia/source/detail?r=11082
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+51 lines, -66 lines) |
Patch |
|
M |
bench/SkBenchmark.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
experimental/SkiaExamples/SkExample.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/gm.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/gm.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/core/SkImageDecoder.h
|
View
|
1
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkImageEncoder.h
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkTRegistry.h
|
View
|
1
|
3 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_FactoryDefault.cpp
|
View
|
1
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_FactoryRegistrar.cpp
|
View
|
1
|
2 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libbmp.cpp
|
View
|
1
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libgif.cpp
|
View
|
1
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libico.cpp
|
View
|
1
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libjpeg.cpp
|
View
|
1
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libpng.cpp
|
View
|
1
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_libwebp.cpp
|
View
|
1
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageDecoder_wbmp.cpp
|
View
|
1
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageEncoder_Factory.cpp
|
View
|
1
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/images/SkMovie_gif.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/ports/SkImageDecoder_CG.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ports/SkImageDecoder_WIC.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/Test.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|