moz-skia/gm
commit-bot@chromium.org 727a352f74 Factory methods for heap-allocated SkColorFilter 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 SkColorFilter 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
R=scroggo@google.com, mtklein@google.com, reed@google.com

Author: dominikg@chromium.org

Review URL: https://codereview.chromium.org/175293002

git-svn-id: http://skia.googlecode.com/svn/trunk@13539 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-21 18:46:30 +00:00
..
rebaseline_server rebaseline_server: extract common unittest code, and rename tests/ -> testdata/ 2014-02-19 15:38:13 +00:00
tests gm self-test: stop checking stdout and stderr 2014-02-05 18:44:31 +00:00
viewer
__init__.py
aaclip.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
aarectmodes.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
alphagradients.cpp
androidfallback.cpp
arcofzorro.cpp
arithmode.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
beziereffects.cpp Add convex polygon rendering effect and GM to test it. 2014-01-30 18:15:51 +00:00
bicubicfilter.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
bigblurs.cpp
bigmatrix.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
bigtext.cpp
bitmapcopy.cpp Offer single-param version of deepCopyTo -- much easier to migrate to colortypes 2014-02-20 19:08:07 +00:00
bitmapfilters.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
bitmapmatrix.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
bitmappremul.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
bitmaprect.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
bitmaprecttest.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
bitmapscroll.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
bitmapshader.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
bitmapsource.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
bleed.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
blurquickreject.cpp
blurrect.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
blurroundrect.cpp
blurs.cpp remove SK_SCALAR_IS_[FLOAT,FIXED] and assume floats 2013-12-17 16:44:46 +00:00
canvasstate.cpp
circles.cpp
circularclips.cpp
clippedbitmapshaders.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
cmykjpeg.cpp
coloremoji.cpp improve bitmap font support (FreeType only) 2013-12-10 18:09:36 +00:00
colorfilterimagefilter.cpp Factory methods for heap-allocated SkColorFilter objects. 2014-02-21 18:46:30 +00:00
colorfilters.cpp Revert of Revert "Serialization of SkPictureImageFilter" (https://codereview.chromium.org/153583007/) 2014-02-07 12:20:04 +00:00
colormatrix.cpp Factory methods for heap-allocated SkColorFilter objects. 2014-02-21 18:46:30 +00:00
colortype.cpp
complexclip.cpp
complexclip2.cpp Store SkRRects in SkClipStack 2014-02-16 13:25:24 +00:00
composeshader.cpp
conicpaths.cpp
convexpaths.cpp Make leak counters thread-safe and turn them on by default for Debug 2014-01-17 17:55:02 +00:00
convexpolyclip.cpp Make GMs aware of what tool they're being run in. 2014-02-07 21:13:11 +00:00
convexpolyeffect.cpp Sanitizing source files in Housekeeper-Nightly 2014-02-09 03:02:01 +00:00
copyTo4444.cpp
cubicpaths.cpp
dashcubics.cpp Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
dashing.cpp Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
degeneratesegments.cpp
deviceproperties.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
displacement.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
display_json_results.py
distantclip.cpp
downsamplebitmap.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
drawbitmaprect.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
drawlooper.cpp
dropshadowimagefilter.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
drrect.cpp Sanitizing source files in Housekeeper-Nightly 2014-02-21 03:02:02 +00:00
emptypath.cpp
extractbitmap.cpp remove SkCanvas::createCompatibleDevice, and add SkCanvas::newSurface 2014-02-05 15:32:21 +00:00
factory.cpp Add Options to SkDecodingImageGenerator, simplify API. 2014-01-02 13:15:13 +00:00
fatpathfill.cpp
filltypes.cpp
filltypespersp.cpp
filterbitmap.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
fontcache.cpp
fontmgr.cpp
fontscaler.cpp
gammatext.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
getpostextpath.cpp fix more 64bit warnings 2014-01-27 13:42:58 +00:00
giantbitmap.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
gm.cpp Make GMs aware of what tool they're being run in. 2014-02-07 21:13:11 +00:00
gm.h add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
gm_error.h
gm_expectations.cpp
gm_expectations.h
gm_json.py new tool: download all GM images for a given builder, ready for skdiff 2014-01-24 18:34:11 +00:00
gmmain.cpp Re-enable imageresizetiled, but skip it in tilegrid and rtree. 2014-02-20 17:17:57 +00:00
gradientDirtyLaundry.cpp
gradient_matrix.cpp
gradients.cpp
gradients_no_texture.cpp
gradtext.cpp
hairlines.cpp
hairmodes.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
hittestpath.cpp
image.cpp use some helper Make functions to initialize SkImageInfo 2014-01-15 02:38:22 +00:00
image.h
imagealphathreshold.cpp Sanitizing source files in Housekeeper-Nightly 2014-01-08 07:01:49 +00:00
imageblur.cpp NEON fast path for box blur 2014-01-13 08:16:45 +00:00
imageblurtiled.cpp Implement correct clipping for image filters. 2014-02-05 17:51:22 +00:00
imagefiltersbase.cpp Make SkImageFilter methods const. 2014-02-05 22:32:02 +00:00
imagefiltersclipped.cpp Fix CTM application in SkResizeImagefilter; implement bounds traversals. 2014-02-19 22:10:12 +00:00
imagefilterscropped.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
imagefiltersgraph.cpp Factory methods for heap-allocated SkColorFilter objects. 2014-02-21 18:46:30 +00:00
imagefiltersscaled.cpp Fix CTM application in SkResizeImagefilter; implement bounds traversals. 2014-02-19 22:10:12 +00:00
imagemagnifier.cpp
imageresizetiled.cpp Re-enable imageresizetiled, but skip it in tilegrid and rtree. 2014-02-20 17:17:57 +00:00
internal_links.cpp
inversepaths.cpp
lcdtext.cpp
lerpmode.cpp
lighting.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
linepaths.cpp
lumafilter.cpp
matrixconvolution.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
megalooper.cpp
mixedxfermodes.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
modecolorfilters.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
morphology.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
nested.cpp
ninepatchstretch.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
nonclosedpaths.cpp fix more 64bit warnings 2014-01-27 13:42:58 +00:00
offsetimagefilter.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
optimizations.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
ovals.cpp
patheffects.cpp Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
pathfill.cpp
pathinterior.cpp
pathopsinverse.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
pathopsskpclip.cpp
pathreverse.cpp
peekpixels.cpp Sanitizing source files in Housekeeper-Nightly 2014-02-14 03:02:05 +00:00
perlinnoise.cpp
pictureimagefilter.cpp Don't run the GM in serialization modes. 2013-12-12 23:54:33 +00:00
points.cpp
poly2poly.cpp
polygons.cpp fix more 64bit warnings 2014-01-27 13:42:58 +00:00
quadpaths.cpp
rects.cpp
resizeimagefilter.cpp Implement a resize image filter. This is needed for the "filterRes" feature in SVG filter effects, which specifies the required size for intermediate processing buffers. In order to make this work, we need to render the primitive at the given resolution (doable at the callsite in Blink), and then to resize the result to the actual on-screen size. The latter is where this filter comes in. 2014-01-15 04:49:18 +00:00
roundrects.cpp
rrect.cpp
rrects.cpp Analytic rrect clip for cicular corners, radius >= 0.5 2014-02-19 15:18:05 +00:00
samplerstress.cpp Factory methods for heap-allocated SkMaskFilter objects. 2014-02-21 10:13:32 +00:00
scalebitmap.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
selftest.cpp
shaderbounds.cpp
shadertext.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
shadertext2.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
shadertext3.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
shadows.cpp
shallowgradient.cpp
simpleaaclip.cpp Offer single-param version of deepCopyTo -- much easier to migrate to colortypes 2014-02-20 19:08:07 +00:00
skbug1719.cpp
spritebitmap.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
srcmode.cpp use some helper Make functions to initialize SkImageInfo 2014-01-15 02:38:22 +00:00
stringart.cpp
strokefill.cpp
strokerect.cpp
strokerects.cpp Just a typo. Rename StrokeRect to StrokeRects in strokerects.cpp, making it different from the class name in strokerect.cpp for debugging. 2013-12-09 09:14:59 +00:00
strokes.cpp
system_preferences.h
system_preferences_default.cpp
system_preferences_mac.mm
tablecolorfilter.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
techtalk1.cpp
testimagefilters.cpp fix more 64bit warnings 2014-01-27 13:42:58 +00:00
texdata.cpp
texteffects.cpp Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
thinrects.cpp
thinstrokedrects.cpp
tileimagefilter.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
tilemodes.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
tilemodes_scaled.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
tinybitmap.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
twopointradial.cpp
typeface.cpp fix more 64bit warnings 2014-01-27 13:42:58 +00:00
valgrind.supp Fix valgrind suppressions (again) 2014-02-14 14:08:05 +00:00
vertices.cpp Remove GPU-only flag for vertices GM 2014-01-08 21:19:12 +00:00
verttext.cpp
verttext2.cpp
verylargebitmap.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
xfermodeimagefilter.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00
xfermodes.cpp replace SkBitmap::Config with SkColorType in gms 2014-02-17 21:21:46 +00:00
xfermodes2.cpp add legacy/helper allocN32Pixels, and convert gm to use it 2014-01-25 16:46:20 +00:00
xfermodes3.cpp add peekPixels to SkCanvas and SkSurface 2014-02-13 17:14:46 +00:00