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

Unified Diff: dm/DMTask.h

Issue 178473006: DM: also run benches once. (Closed) Base URL: https://skia.googlesource.com/skia.git@dm
Patch Set: add note Created 6 years, 10 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/DMGpuTask.cpp ('k') | dm/DMTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMTask.h
diff --git a/dm/DMTask.h b/dm/DMTask.h
index 638a939304dd5dea8b36d6f4bb27d5869bbdffbf..e8598df85e00ee6001b3f2571f356a4ae91d7daa 100644
--- a/dm/DMTask.h
+++ b/dm/DMTask.h
@@ -2,6 +2,7 @@
#define DMTask_DEFINED
#include "DMReporter.h"
+#include "GrContextFactory.h"
#include "SkRunnable.h"
#include "SkThreadPool.h"
@@ -36,6 +37,9 @@ protected:
void spawnChild(Task* task);
void fail(const char* msg = NULL);
+ // This can only be safely called from a GPU task's draw() method.
+ GrContextFactory* getGrContextFactory() const;
+
private:
// Both unowned.
Reporter* fReporter;
« no previous file with comments | « dm/DMGpuTask.cpp ('k') | dm/DMTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698