skia2/include/utils
commit-bot@chromium.org ef57b7e653 DM: make GPU tasks multithreaded again. Big refactor.
The main meat of things is in SkThreadPool.  We can now give SkThreadPool a
type for each thread to create and destroy on its local stack.  It's TLS
without going through SkTLS.

I've split the DM tasks into CpuTasks that run on threads with no TLS, and
GpuTasks that run on threads with a thread local GrContextFactory.

The old CpuTask and GpuTask have been renamed to CpuGMTask and GpuGMTask.

Upshot: default run of out/Debug/dm goes from ~45 seconds to ~20 seconds.

BUG=skia:
R=bsalomon@google.com, mtklein@google.com, reed@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/179233005

git-svn-id: http://skia.googlecode.com/svn/trunk@13632 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-28 20:31:31 +00:00
..
ios Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
mac oops, fix name for SkCreateDataProviderFromData 2013-03-25 20:21:26 +00:00
win Use lowercase windows.h in includes to fix Windows cross compilation using mingw. 2013-12-03 15:23:37 +00:00
SkBoundaryPatch.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkCamera.h remove SkScalarMul macro 2014-01-23 02:02:45 +00:00
SkCanvasStateUtils.h Create a semi-stable API for capturing the state of an SkCanvas and reconstructing that state across different versions of Skia. 2013-08-29 20:20:40 +00:00
SkCondVar.h Use lowercase windows.h in includes to fix Windows cross compilation using mingw. 2013-12-03 15:23:37 +00:00
SkCountdown.h Add SkThreadPool for managing threads. 2012-10-31 15:52:16 +00:00
SkCubicInterval.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkCullPoints.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDebugUtils.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-02-15 07:16:57 +00:00
SkDeferredCanvas.h add new onClip* methods to SkCanvas 2014-02-28 18:19:39 +00:00
SkDumpCanvas.h add new onClip* methods to SkCanvas 2014-02-28 18:19:39 +00:00
SkEventTracer.h rename tracing parameter to be more consistent with other methods 2014-02-03 19:47:13 +00:00
SkFrontBufferedStream.h Hide implementation details: SkFrontBufferedStream 2013-11-12 20:53:05 +00:00
SkInterpolator.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkJSON.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkJSONCPP.h Add JSON output option to bench. 2013-12-03 18:16:48 +00:00
SkLayer.h Extended Inst counting to find "unknown" leaked object (SkTMaskGamma) 2012-08-16 14:58:06 +00:00
SkLua.h Revert "Revert of Add getReducedClipStack to lua canvas (https://codereview.chromium.org/180283004/)" 2014-02-26 20:22:32 +00:00
SkLuaCanvas.h add new onClip* methods to SkCanvas 2014-02-28 18:19:39 +00:00
SkMatrix44.h Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning"" 2013-10-31 17:28:30 +00:00
SkMeshUtils.h Start cleaning up 64bit Win warnings 2013-10-14 21:53:24 +00:00
SkNinePatch.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkNullCanvas.h Add SK_API to null canvas create method 2012-06-11 15:41:25 +00:00
SkNWayCanvas.h add new onClip* methods to SkCanvas 2014-02-28 18:19:39 +00:00
SkParse.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkParsePaint.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkParsePath.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkPathUtils.h Animated the PathUtils Sample to show path contours# Enter a description of the change. 2013-07-09 16:30:38 +00:00
SkPictureUtils.h Pull in Chromium's version of GatherPixelRefs 2014-01-13 13:33:26 +00:00
SkProxyCanvas.h add new onClip* methods to SkCanvas 2014-02-28 18:19:39 +00:00
SkRandom.h remove SkScalarMul macro 2014-01-23 02:02:45 +00:00
SkRTConf.h fix leaks in SkConf 2014-01-31 17:32:03 +00:00
SkRunnable.h DM: make GPU tasks multithreaded again. Big refactor. 2014-02-28 20:31:31 +00:00
SkThreadPool.h DM: make GPU tasks multithreaded again. Big refactor. 2014-02-28 20:31:31 +00:00
SkUnitMappers.h Refactor read and write buffers. 2014-01-30 18:58:24 +00:00
SkWGL.h Use lowercase windows.h in includes to fix Windows cross compilation using mingw. 2013-12-03 15:23:37 +00:00