skia2/tests
commit-bot@chromium.org 6169f2b4da initial import of Chrome's trace_event into skia framework
This patch includes a modified version of Chrome's trace_event.h, which provides
tracing macros that can easily integrate into the about://tracing framework.

Currently the macros link to a default implementation of the (narrow) tracing
class SkDefaultEventTracer which does nothing; next step will be to have Chrome
subclass the SkEventTracer with a shim that bolts Skia's trace events to its own,
allowing Skia's trace events to show up in about://tracing.

I've verified that this file builds properly, and when I added a simple scoped
TRACE_EVENT0 to SkCanvas::drawRect, along with some debug prints in the NOP
implementation of tracing, I saw what I expected printed to the screen.

BUG=skia:
R=nduca@chromium.org, reed@google.com, mtklein@google.com, bsalomon@google.com

Author: humper@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@13256 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-01-31 00:04:25 +00:00
..
TestXCode/Tests.xcodeproj
AAClipTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
AndroidPaintTest.cpp Refactor read and write buffers. 2014-01-30 18:58:24 +00:00
AnnotationTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ARGBImageEncoderTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
AtomicTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
BitmapCopyTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
BitmapGetColorTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
BitmapHasherTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BitmapHeapTest.cpp Refactor read and write buffers. 2014-01-30 18:58:24 +00:00
BitmapTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BitSetTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
BlitRowTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
BlurTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
CachedDecodingPixelRefTest.cpp SkOnce: add option to call another cleanup function once at exit. 2014-01-24 22:38:39 +00:00
CanvasStateTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
CanvasTest.cpp No deduping dictionaries for matrices and regions. 2014-01-23 15:16:05 +00:00
ChecksumTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ClampRangeTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ClipCacheTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ClipCubicTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ClipperTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ClipStackTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ColorFilterTest.cpp Refactor read and write buffers. 2014-01-30 18:58:24 +00:00
ColorPrivTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ColorTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
DataRefTest.cpp Refactor read and write buffers. 2014-01-30 18:58:24 +00:00
DeferredCanvasTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
DequeTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
DeviceLooperTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
DiscardableMemoryPool.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DiscardableMemoryTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DocumentTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DrawBitmapRectTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
DrawPathTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
DrawTextTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
DynamicHashTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
EmptyPathTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ErrorTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FillPathTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FitsInTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FlatDataTest.cpp Refactor read and write buffers. 2014-01-30 18:58:24 +00:00
FlateTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FontHostStreamTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FontHostTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FontMgrTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FontNamesTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
FrontBufferedStreamTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GeometryTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GifTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GLInterfaceValidation.cpp Turn NVPR on by default (but off in tools). 2014-01-24 20:49:44 +00:00
GLProgramsTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GpuBitmapCopyTest.cpp Reland "Fix genID cloning bugs." 2014-01-15 16:56:52 +00:00
GpuColorFilterTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GpuDrawPathTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GradientTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GrContextFactoryTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GrDrawTargetTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GrMemoryPoolTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
GrRedBlackTreeTest.cpp GrRedBlackTree test is GPU specific. 2014-01-30 00:28:54 +00:00
GrSurfaceTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GrUnitTests.cpp Reland "Unwrap GrRedBlackTree unit test and use REPORTER_ASSERT()." 2014-01-29 23:56:40 +00:00
HashCacheTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ImageCacheTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ImageDecodingTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ImageFilterTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
InfRectTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
JpegTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
LayerDrawLooperTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
LListTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
MallocPixelRefTest.cpp use some helper Make functions to initialize SkImageInfo 2014-01-15 02:38:22 +00:00
MathTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
Matrix44Test.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
MatrixTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
MD5Test.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
MemoryTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MemsetTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
MessageBusTest.cpp Move SkMessageBus::Get out of header, and retry crrev.com/106563002. 2014-01-15 23:09:01 +00:00
MetaDataTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
MipMapTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
OnceTest.cpp SkOnce: add option to call another cleanup function once at exit. 2014-01-24 22:38:39 +00:00
OSPathTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PackBitsTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PaintTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ParsePathTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PathCoverageTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PathMeasureTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PathOpsAngleTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsBoundsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicIntersectionTestData.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PathOpsCubicIntersectionTestData.h
PathOpsCubicLineIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicQuadIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicReduceOrderTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicToQuadsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDCubicTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDLineTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDPointTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDQuadTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDRectTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDTriangleTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDVectorTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsExtendedTest.cpp
PathOpsExtendedTest.h
PathOpsInverseTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsLineIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsLineParametetersTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsOpCubicThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsOpRectThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsOpTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadIntersectionTestData.cpp
PathOpsQuadIntersectionTestData.h
PathOpsQuadLineIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadLineIntersectionThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadParameterizationTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadReduceOrderTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyDegenerateThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyFailTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PathOpsSimplifyQuadralateralsThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyQuadThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyRectThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyTrianglesThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSkpClipTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSkpTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsTestCommon.cpp
PathOpsTestCommon.h
PathOpsThreadedCommon.cpp
PathOpsThreadedCommon.h
PathOpsTypesTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathTest.cpp add alternative to isRect named asRect 2014-01-25 16:54:31 +00:00
PathUtilsTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PDFPrimitivesTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PictureTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PictureUtilsTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PipeTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PixelRefTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
PointTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PremulAlphaRoundTripTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
QuickRejectTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
RandomTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
Reader32Test.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ReadPixelsTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ReadWriteAlphaTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
RefCntTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
RefDictTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
RegionTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ResourceCacheTest.cpp Speed up GrResourceCache add and lookup by using TDynamicHash 2014-01-17 17:56:21 +00:00
RoundRectTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
RTreeTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
RuntimeConfigTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ScalarTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
SerializationTest.cpp Set write buffer flags only in SkWriteBuffer and SkFlatController constructors. 2014-01-30 22:16:32 +00:00
SHA1Test.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ShaderImageFilterTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ShaderOpacityTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
SkBase64Test.cpp Port SkBase64 test to our test driver. 2014-01-30 22:51:42 +00:00
skia_test.cpp Reland "Add --skip_cpu and --skip_gpu options to tests" 2014-01-30 15:30:50 +00:00
SkpSkGrTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
SortTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
SrcOverTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
StreamTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
StringTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
StrokeTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
SurfaceTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
TDStackNesterTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
Test.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
Test.h Reland "Add --skip_cpu and --skip_gpu options to tests" 2014-01-30 15:30:50 +00:00
TestSize.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
TileGridTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
TLSTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
ToUnicode.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
TracingTest.cpp initial import of Chrome's trace_event into skia framework 2014-01-31 00:04:25 +00:00
TSetTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
Typeface.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
UnicodeTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
UnitTestTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
UtilsTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
valgrind.supp Suppress new valgrind complaint 2014-01-30 18:51:29 +00:00
WArrayTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
WritePixelsTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
Writer32Test.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00
XfermodeTest.cpp Cleanup: Sanitize the order of includes under tests/ 2014-01-24 20:56:26 +00:00