Home | History | Annotate | only in /external/skia/dm
Up to higher level directory
NameDateSize
Android.mk05-Aug-201515.2K
DM.cpp05-Aug-201510.4K
DMBenchTask.cpp05-Aug-20152.7K
DMBenchTask.h05-Aug-20151.7K
DMCpuGMTask.cpp05-Aug-20152.1K
DMCpuGMTask.h05-Aug-20151K
DMExpectations.h05-Aug-20151.2K
DMExpectationsTask.cpp05-Aug-2015547
DMExpectationsTask.h05-Aug-2015772
DMGpuGMTask.cpp05-Aug-20151.7K
DMGpuGMTask.h05-Aug-20151K
DMGpuSupport.h05-Aug-20151.5K
DMPDFRasterizeTask.cpp05-Aug-2015897
DMPDFRasterizeTask.h05-Aug-2015942
DMPDFTask.cpp05-Aug-20152.9K
DMPDFTask.h05-Aug-20151.1K
DMPipeTask.cpp05-Aug-20152.3K
DMPipeTask.h05-Aug-20151K
DMQuiltTask.cpp05-Aug-20152K
DMQuiltTask.h05-Aug-2015901
DMRecordTask.cpp05-Aug-20151.6K
DMRecordTask.h05-Aug-2015937
DMReplayTask.cpp05-Aug-20151.4K
DMReplayTask.h05-Aug-20151,006
DMReporter.cpp05-Aug-20151.2K
DMReporter.h05-Aug-2015839
DMSerializeTask.cpp05-Aug-20151.2K
DMSerializeTask.h05-Aug-2015753
DMSKPTask.cpp05-Aug-2015791
DMSKPTask.h05-Aug-2015686
DMTask.cpp05-Aug-20152.3K
DMTask.h05-Aug-20151.7K
DMTaskRunner.cpp05-Aug-2015734
DMTaskRunner.h05-Aug-2015719
DMTestTask.cpp05-Aug-20151.9K
DMTestTask.h05-Aug-20151.5K
DMUtil.cpp05-Aug-20153.2K
DMUtil.h05-Aug-20151.2K
DMWriteTask.cpp05-Aug-20156.5K
DMWriteTask.h05-Aug-20151.3K
README05-Aug-20151K

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