Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: dm/DMPipeTask.cpp

Issue 179233005: DM: make GPU tasks multithreaded again. Big refactor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: default 1 GPU thread Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « dm/DMPipeTask.h ('k') | dm/DMReplayTask.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "DMPipeTask.h" 1 #include "DMPipeTask.h"
2 #include "DMUtil.h" 2 #include "DMUtil.h"
3 #include "DMWriteTask.h" 3 #include "DMWriteTask.h"
4 4
5 #include "SamplePipeControllers.h" 5 #include "SamplePipeControllers.h"
6 #include "SkCommandLineFlags.h" 6 #include "SkCommandLineFlags.h"
7 #include "SkGPipe.h" 7 #include "SkGPipe.h"
8 8
9 DEFINE_bool(pipe, true, "If true, check several pipe variants against the refere nce bitmap."); 9 DEFINE_bool(pipe, true, "If true, check several pipe variants against the refere nce bitmap.");
10 10
(...skipping 20 matching lines...) Expand all
31 } else { 31 } else {
32 return "pipe"; 32 return "pipe";
33 } 33 }
34 } 34 }
35 35
36 PipeTask::PipeTask(const Task& parent, 36 PipeTask::PipeTask(const Task& parent,
37 skiagm::GM* gm, 37 skiagm::GM* gm,
38 SkBitmap reference, 38 SkBitmap reference,
39 bool crossProcess, 39 bool crossProcess,
40 bool sharedAddressSpace) 40 bool sharedAddressSpace)
41 : Task(parent) 41 : CpuTask(parent)
42 , fFlags(get_flags(crossProcess, sharedAddressSpace)) 42 , fFlags(get_flags(crossProcess, sharedAddressSpace))
43 , fName(UnderJoin(parent.name().c_str(), get_name(fFlags))) 43 , fName(UnderJoin(parent.name().c_str(), get_name(fFlags)))
44 , fGM(gm) 44 , fGM(gm)
45 , fReference(reference) 45 , fReference(reference)
46 {} 46 {}
47 47
48 void PipeTask::draw() { 48 void PipeTask::draw() {
49 SkBitmap bitmap; 49 SkBitmap bitmap;
50 SetupBitmap(fReference.colorType(), fGM.get(), &bitmap); 50 SetupBitmap(fReference.colorType(), fGM.get(), &bitmap);
51 51
(...skipping 23 matching lines...) Expand all
75 return true; 75 return true;
76 } 76 }
77 if (fFlags == SkGPipeWriter::kCrossProcess_Flag && 77 if (fFlags == SkGPipeWriter::kCrossProcess_Flag &&
78 fGM->getFlags() & skiagm::GM::kSkipPipeCrossProcess_Flag) { 78 fGM->getFlags() & skiagm::GM::kSkipPipeCrossProcess_Flag) {
79 return true; 79 return true;
80 } 80 }
81 return false; 81 return false;
82 } 82 }
83 83
84 } // namespace DM 84 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMPipeTask.h ('k') | dm/DMReplayTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698