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

Side by Side Diff: dm/DMGpuSupport.cpp

Issue 847273005: More natural way to serialize GPU tasks and tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: always stack-scope GrContextFactories 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 unified diff | Download patch
« no previous file with comments | « dm/DMGpuSupport.h ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "DMGpuSupport.h"
2 #include "SkTLS.h"
3
4 static void* create_gr_factory() { return new GrContextFactory; }
5 static void delete_gr_factory(void* p) { delete (GrContextFactory*)p; }
6
7 GrContextFactory* GetThreadLocalGrContextFactory() {
8 return (GrContextFactory*)SkTLS::Get(create_gr_factory, delete_gr_factory);
9 }
OLDNEW
« 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