skia2/include/gpu
jcgregorio 54e2ca5a23 Revert of Make SkGLContext lifetime more well-defined (patchset #7 id:120001 of https://codereview.chromium.org/1511773005/ )
Reason for revert:
Broke tests on Android, iOS, Mac and Windows.

Original issue's description:
> Make SkGLContext lifetime more well-defined
>
> Remove refcounting from SkGLContext.
>
> SkGLContext is expected to behave like GrContextFactory would own
> it, as implied by the GrContextFactory function.
>
> If it is refcounted, this does not hold.
>
> Also other use sites, such as in SkOSWindow_win (command buffer gl
> object), confirm the behavior. The object is explicitly owned and
> destroyed, not shared.
>
> Also fixes potential crashes from using GL context of an abandoned
> context.
>
> Also fixes potential crashes in DM/nanobench, if the GrContext lives
> longer than GLContext through internal refing of GrContext.
>
> Moves the non-trivial implementations from GrContextFactory.h to
> .cpp, just for consistency sake.
>
> Changes pathops_unittest.gyp. The pathops_unittest uses
> GrContextFactory, but did not link to its implementation. The reason
> they worked was that the implementation used (constructors, destructors)
> happened to be in the .h file.
>
> This works towards being able to use command buffer and NVPR from
> the SampleApp.
>
> BUG=skia:2992
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1511773005
>
> Committed: https://skia.googlesource.com/skia/+/830e012187f951d49d7e46e196ac8d1e653a25da

TBR=bsalomon@google.com,kkinnunen@nvidia.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:2992

Review URL: https://codereview.chromium.org/1555053003
2016-01-05 04:15:23 -08:00
..
effects Don't ref/unref the static src-over xp 2015-12-21 13:12:55 -08:00
gl Revert of Make SkGLContext lifetime more well-defined (patchset #7 id:120001 of https://codereview.chromium.org/1511773005/ ) 2016-01-05 04:15:23 -08:00
GrBlend.h Create fragment processor for performing input color blend with child processor 2015-09-15 15:33:27 -07:00
GrCaps.h Add check for highp support in Conic effect 2015-12-11 04:59:36 -08:00
GrClip.h fix mozilla bug 2015-12-04 08:51:11 -08:00
GrColor.h Make skpaint->grpaint flow work for composing draws (verts and atlas) 2015-09-28 06:26:29 -07:00
GrConfig.h Create a define for nanobench builds to dump stats 2015-12-02 13:00:37 -08:00
GrContext.h Move texture drawing utility method to SkGpuDevice 2015-12-08 18:53:44 -08:00
GrContextOptions.h Add option to control maximum GrBatch lookback 2015-12-14 12:13:09 -08:00
GrCoordTransform.h some utils for rect and matrix 2015-03-13 06:08:28 -07:00
GrDrawContext.h Move flush logic into GrAtlasTextBlob 2015-12-10 11:22:08 -08:00
GrFragmentProcessor.h Change prealloc number of child FPs be 1 rather than 2 2015-11-19 11:04:48 -05:00
GrGpuResource.h Add onMemoryDump to GrContext 2015-09-15 14:16:10 -07:00
GrGpuResourceRef.h apply mozilla patch 2015-11-10 04:55:08 -08:00
GrInvariantOutput.h Make skpaint->grpaint flow work for composing draws (verts and atlas) 2015-09-28 06:26:29 -07:00
GrPaint.h Don't create a GXPFactory when blend is SrcOver 2015-11-23 13:20:42 -08:00
GrProcessor.h Increase the amount of debug information printed out by batches 2015-11-16 09:06:59 -08:00
GrProcessorUnitTest.h Fix GrCoverageSetOpXP unit test on mixed samples 2015-11-12 12:11:04 -08:00
GrProgramElement.h Convert child FPs from refs to pending executions when parent converts 2015-08-27 16:43:48 -07:00
GrRenderTarget.h Dependencies are now added between the drawTargets in GrPipeline 2015-10-30 10:11:30 -07:00
GrResourceKey.h Fix thread-unsafe construction of GrUniqueKey in GR_DEFINE_STATIC_UNIQUE_KEY 2015-12-17 08:15:47 -08:00
GrShaderVar.h Refactor position computation to enable device space "nudge" 2015-01-18 08:14:14 -08:00
GrSurface.h Defer flushes if kPreferNoIO is specified 2015-08-13 05:19:14 -07:00
GrTestUtils.h Take care fall-through case of switch in skia 2016-01-05 00:35:50 -08:00
GrTexture.h Move DstCoordTexture to GrXP, rename and remove the word "copy" from dstcopytexture names. 2015-05-26 09:49:05 -07:00
GrTextureAccess.h Remove image usage type enum. Use GrTextureParams instead. 2015-10-12 10:39:46 -07:00
GrTextureParams.h Remove image usage type enum. Use GrTextureParams instead. 2015-10-12 10:39:46 -07:00
GrTextureProvider.h tunnel down texture-size-constraint to imagefilters 2015-10-22 13:20:20 -07:00
GrTypes.h Set GL_PACK_ALIGNMENT before calling glReadPixels 2015-12-15 12:37:38 -08:00
GrTypesPriv.h Take care fall-through case of switch in skia 2016-01-05 00:35:50 -08:00
GrXferProcessor.h Create a static instances of SrcOver XferProcessor 2015-11-30 10:15:58 -08:00
SkGr.h Rewrite GrTextureMaker to disentangle bitmap case from base class and give GPU object a say in what copying needs to be done. 2015-10-20 07:58:01 -07:00
SkGrPixelRef.h remove SkInstCnt 2015-06-26 11:45:03 -07:00
SkGrTexturePixelRef.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00