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

Side by Side Diff: dm/DMTileGridTask.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/DMTileGridTask.h ('k') | dm/DMWriteTask.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 "DMTileGridTask.h" 1 #include "DMTileGridTask.h"
2 #include "DMWriteTask.h" 2 #include "DMWriteTask.h"
3 #include "DMUtil.h" 3 #include "DMUtil.h"
4 4
5 #include "SkCommandLineFlags.h" 5 #include "SkCommandLineFlags.h"
6 #include "SkPicture.h" 6 #include "SkPicture.h"
7 #include "SkTileGridPicture.h" 7 #include "SkTileGridPicture.h"
8 8
9 // TODO(mtklein): Tile grid tests are currently failing. (Skia issue 1198). Wh en fixed, -> true. 9 // TODO(mtklein): Tile grid tests are currently failing. (Skia issue 1198). Wh en fixed, -> true.
10 DEFINE_bool(tileGrid, false, "If true, run picture replay tests with a tile grid ."); 10 DEFINE_bool(tileGrid, false, "If true, run picture replay tests with a tile grid .");
11 11
12 namespace DM { 12 namespace DM {
13 13
14 TileGridTask::TileGridTask(const Task& parent, skiagm::GM* gm, SkBitmap referenc e, SkISize tileSize) 14 TileGridTask::TileGridTask(const Task& parent, skiagm::GM* gm, SkBitmap referenc e, SkISize tileSize)
15 : Task(parent) 15 : CpuTask(parent)
16 , fName(UnderJoin(parent.name().c_str(), "tilegrid")) 16 , fName(UnderJoin(parent.name().c_str(), "tilegrid"))
17 , fGM(gm) 17 , fGM(gm)
18 , fReference(reference) 18 , fReference(reference)
19 , fTileSize(tileSize) 19 , fTileSize(tileSize)
20 {} 20 {}
21 21
22 static int tiles_needed(int fullDimension, int tileDimension) { 22 static int tiles_needed(int fullDimension, int tileDimension) {
23 return (fullDimension + tileDimension - 1) / tileDimension; 23 return (fullDimension + tileDimension - 1) / tileDimension;
24 } 24 }
25 25
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (fGM->getFlags() & skiagm::GM::kSkipPicture_Flag) { 71 if (fGM->getFlags() & skiagm::GM::kSkipPicture_Flag) {
72 return true; 72 return true;
73 } 73 }
74 if (fGM->getFlags() & skiagm::GM::kSkipTiled_Flag) { 74 if (fGM->getFlags() & skiagm::GM::kSkipTiled_Flag) {
75 return true; 75 return true;
76 } 76 }
77 return !FLAGS_tileGrid; 77 return !FLAGS_tileGrid;
78 } 78 }
79 79
80 } // namespace DM 80 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMTileGridTask.h ('k') | dm/DMWriteTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698