Home | History | Annotate | only in /external/skia/dm
Up to higher level directory
NameDateSize
Android.mk03-Dec-201415.2K
DM.cpp03-Dec-201410.4K
DMBenchTask.cpp03-Dec-20142.7K
DMBenchTask.h03-Dec-20141.7K
DMCpuGMTask.cpp03-Dec-20142.1K
DMCpuGMTask.h03-Dec-20141K
DMExpectations.h03-Dec-20141.2K
DMExpectationsTask.cpp03-Dec-2014547
DMExpectationsTask.h03-Dec-2014772
DMGpuGMTask.cpp03-Dec-20141.7K
DMGpuGMTask.h03-Dec-20141K
DMGpuSupport.h03-Dec-20141.5K
DMPDFRasterizeTask.cpp03-Dec-2014897
DMPDFRasterizeTask.h03-Dec-2014942
DMPDFTask.cpp03-Dec-20142.9K
DMPDFTask.h03-Dec-20141.1K
DMPipeTask.cpp03-Dec-20142.3K
DMPipeTask.h03-Dec-20141K
DMQuiltTask.cpp03-Dec-20142K
DMQuiltTask.h03-Dec-2014901
DMRecordTask.cpp03-Dec-20141.6K
DMRecordTask.h03-Dec-2014937
DMReplayTask.cpp03-Dec-20141.4K
DMReplayTask.h03-Dec-20141,006
DMReporter.cpp03-Dec-20141.2K
DMReporter.h03-Dec-2014839
DMSerializeTask.cpp03-Dec-20141.2K
DMSerializeTask.h03-Dec-2014753
DMSKPTask.cpp03-Dec-2014791
DMSKPTask.h03-Dec-2014686
DMTask.cpp03-Dec-20142.3K
DMTask.h03-Dec-20141.7K
DMTaskRunner.cpp03-Dec-2014734
DMTaskRunner.h03-Dec-2014719
DMTestTask.cpp03-Dec-20141.9K
DMTestTask.h03-Dec-20141.5K
DMUtil.cpp03-Dec-20143.2K
DMUtil.h03-Dec-20141.2K
DMWriteTask.cpp03-Dec-20146.5K
DMWriteTask.h03-Dec-20141.3K
README03-Dec-20141K

README

      1 DM is like GM, but multithreaded.  It doesn't do everything GM does.
      2 
      3 DM's design is based around Tasks and a TaskRunner.
      4 
      5 A Task represents an independent unit of work that might fail.  We make a task
      6 for each GM/configuration pair we want to run.  Tasks can kick off new tasks
      7 themselves.  For example, a CpuTask can kick off a ReplayTask to make sure
      8 recording and playing back an SkPicture gives the same result as direct
      9 rendering.
     10 
     11 The TaskRunner runs all tasks on one of two threadpools, whose sizes are
     12 configurable by --cpuThreads and --gpuThreads.  Ideally we'd run these on a
     13 single threadpool but it can swamp the GPU if we shove too much work into it at
     14 once.  --cpuThreads defaults to the number of cores on the machine.
     15 --gpuThreads defaults to 1, but you may find 2 or 4 runs a little faster.
     16 
     17 So the main flow of DM is:
     18 
     19     for each GM:
     20         for each configuration:
     21             kick off a new task
     22     < tasks run, maybe fail, and maybe kick off new tasks >
     23     wait for all tasks to finish
     24     report failures
     25 
     26