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

Unified Diff: dm/DMGpuSupport.cpp

Issue 817573004: turn back on gpu tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: missing file Created 5 years, 11 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/DMGpuSupport.h ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMGpuSupport.cpp
diff --git a/dm/DMGpuSupport.cpp b/dm/DMGpuSupport.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..87a406b4846f110267ca41f7618b75fbfddbb804
--- /dev/null
+++ b/dm/DMGpuSupport.cpp
@@ -0,0 +1,9 @@
+#include "DMGpuSupport.h"
+#include "SkTLS.h"
+
+static void* create_gr_factory() { return new GrContextFactory; }
+static void delete_gr_factory(void* p) { delete (GrContextFactory*)p; }
+
+GrContextFactory* GetThreadLocalGrContextFactory() {
+ return (GrContextFactory*)SkTLS::Get(create_gr_factory, delete_gr_factory);
+}
« no previous file with comments | « dm/DMGpuSupport.h ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698