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

Unified Diff: dm/DMQuiltTask.h

Issue 454123003: Plumbing for using a BBH in SkRecordDraw. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clang says asserts are always true Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMCpuGMTask.cpp ('k') | dm/DMQuiltTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMQuiltTask.h
diff --git a/dm/DMQuiltTask.h b/dm/DMQuiltTask.h
index 1bc6a27478791c12af74119e5160dcb88e72c26b..79d82166f7a66f9d45fc29f601360f25a4070d51 100644
--- a/dm/DMQuiltTask.h
+++ b/dm/DMQuiltTask.h
@@ -12,27 +12,30 @@
namespace DM {
class QuiltTask : public CpuTask {
-
public:
- enum Mode {
- kNoBBH_Mode,
- kRTree_Mode,
- kQuadTree_Mode,
- kTileGrid_Mode,
- kSkRecord_Mode, // Currently uses no BBH.
+ enum BBH {
+ kNone_BBH,
+ kRTree_BBH,
+ kQuadTree_BBH,
+ kTileGrid_BBH,
+ };
+ enum Backend {
+ kDefault_Backend,
+ kSkRecord_Backend,
};
QuiltTask(const Task& parent, // QuiltTask must be a child task. Pass its parent here.
skiagm::GM*, // GM to run through a picture. Takes ownership.
SkBitmap reference, // Bitmap to compare picture replay results to.
- Mode mode);
+ BBH, Backend);
virtual void draw() SK_OVERRIDE;
virtual bool shouldSkip() const SK_OVERRIDE;
virtual SkString name() const SK_OVERRIDE { return fName; }
private:
- const Mode fMode;
+ const BBH fBBH;
+ const Backend fBackend;
const SkString fName;
SkAutoTDelete<skiagm::GM> fGM;
const SkBitmap fReference;
« no previous file with comments | « dm/DMCpuGMTask.cpp ('k') | dm/DMQuiltTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698