Home | History | Annotate | only in /external/skia/dm
Up to higher level directory
NameDateSize
DM.cpp03-Jun-20145.6K
DMCpuTask.cpp03-Jun-20141.7K
DMCpuTask.h03-Jun-20141.1K
DMExpectations.h03-Jun-20141.2K
DMExpectationsTask.cpp03-Jun-2014544
DMExpectationsTask.h03-Jun-2014832
DMGpuTask.cpp03-Jun-20142.1K
DMGpuTask.h03-Jun-20141.1K
DMPipeTask.cpp03-Jun-20142.4K
DMPipeTask.h03-Jun-20141.1K
DMReplayTask.cpp03-Jun-20141.3K
DMReplayTask.h03-Jun-20141K
DMReporter.cpp03-Jun-2014851
DMReporter.h03-Jun-2014865
DMSerializeTask.cpp03-Jun-20141.5K
DMSerializeTask.h03-Jun-2014813
DMTask.cpp03-Jun-2014938
DMTask.h03-Jun-20141.1K
DMTaskRunner.cpp03-Jun-2014700
DMTaskRunner.h03-Jun-2014656
DMTileGridTask.cpp03-Jun-20142.5K
DMTileGridTask.h03-Jun-20141K
DMUtil.cpp03-Jun-20141.2K
DMUtil.h03-Jun-2014802
DMWriteTask.cpp03-Jun-20143.6K
DMWriteTask.h03-Jun-20141.1K
README03-Jun-20141.2K

README

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