skia2/include/gpu
kkinnunen 30bc88ccd5 Refactor SkGLContext to be actually extendable
Refactor SkGLContext to be actually extendable. Before, non-trivial subclass
would need to destroy the GL connection upon running the destructor. However,
the base class would run GL commands in its own destructor (with destroyed GL
connection)

Refactor so that SkGLContext subclass object creation is completely done by
the factory function. If the factory function returns a non-NULL ptr, it means the context
is usable.

The destruction is done with the destructor instead of virtual function called
upon destruction. Make the destructors not to call virtual functions, for
clarity.

Remove custom 1x1 FBO setup code from the base class. It appears not to be used
anymore.

BUG=skia:2992

Review URL: https://codereview.chromium.org/640283004
2014-10-15 23:03:54 -07:00
..
gl Refactor SkGLContext to be actually extendable 2014-10-15 23:03:54 -07:00
GrBackendProcessorFactory.h Last round of effect->processor (for now) 2014-10-15 18:34:46 -07:00
GrBinHashKey.h Make textures register with GrResourceCache2 as scratch. 2014-08-28 09:54:34 -07:00
GrClipData.h "NULL !=" = NULL 2014-09-05 13:34:00 -07:00
GrColor.h Always use both a color and coverage attribute in GrAARectRenderer. 2014-08-11 11:07:48 -07:00
GrConfig.h Add counting of some GL calls 2014-09-18 13:52:08 -07:00
GrContext.h Remove uses of GrAutoScratchTexture. 2014-10-14 11:47:22 -07:00
GrContextFactory.h Refactor SkGLContext to be actually extendable 2014-10-15 23:03:54 -07:00
GrCoordTransform.h Make GrFragmentProcessor auto-compare coord xforms. 2014-10-15 19:06:21 -07:00
GrFontScaler.h Fix color emoji. 2014-10-10 11:36:12 -07:00
GrFragmentProcessor.h Make GrFragmentProcessor auto-compare coord xforms. 2014-10-15 19:06:21 -07:00
GrGeometryProcessor.h Some cleanup in processor header files. 2014-10-15 11:05:26 -07:00
GrGlyph.h Fix color emoji. 2014-10-10 11:36:12 -07:00
GrGpuResource.h Use presence of a content key as non-scratch indicator 2014-10-09 09:57:18 -07:00
GrGpuResourceRef.h GrResourceCache2 manages scratch texture. 2014-10-08 08:40:09 -07:00
GrPaint.h Move willUseInputColor check to computeInvariantOutput 2014-10-15 13:49:02 -07:00
GrPathRendererChain.h Revert of r13384 (Stateful PathRenderer implementation) 2014-02-11 16:30:21 +00:00
GrProcessor.h Move willUseInputColor check to computeInvariantOutput 2014-10-15 13:49:02 -07:00
GrProcessorStage.h Split GrFragmentProcessor into its own header 2014-10-15 10:50:36 -07:00
GrProcessorUnitTest.h Force linking of static member variables for GLPrograms 2014-10-09 13:12:35 -07:00
GrProgramElement.h Fix ref cnt'ing issue in GrProgramElement. 2014-10-03 05:31:41 -07:00
GrProgramElementRef.h Patch to create a distinct geometry processor. The vast majority of this patch 2014-09-23 09:50:21 -07:00
GrRect.h Begin atlasing 2014-06-30 08:26:50 -07:00
GrRenderTarget.h Devirtualize read/write pixels on surface. 2014-10-13 12:32:55 -07:00
GrResourceKey.h Make textures register with GrResourceCache2 as scratch. 2014-08-28 09:54:34 -07:00
GrShaderVar.h Changes to remove program effects builder 2014-09-18 12:26:38 -07:00
GrSurface.h Remove uses of GrAutoScratchTexture. 2014-10-14 11:47:22 -07:00
GrTBackendProcessorFactory.h More effect->processor cleanup 2014-10-15 11:25:21 -07:00
GrTexture.h Devirtualize read/write pixels on surface. 2014-10-13 12:32:55 -07:00
GrTextureAccess.h Patch to create a distinct geometry processor. The vast majority of this patch 2014-09-23 09:50:21 -07:00
GrTypes.h gl programs rewrite 2014-10-09 07:25:36 -07:00
GrTypesPriv.h GrResourceCache2 manages scratch texture. 2014-10-08 08:40:09 -07:00
GrUserConfig.h Rename from "(un)lock" to "(un)map" for geometry buffers. 2014-05-07 20:51:05 +00:00
SkGr.h GrResourceCache2 manages scratch texture. 2014-10-08 08:40:09 -07:00
SkGrPixelRef.h GrResourceCache2 manages scratch texture. 2014-10-08 08:40:09 -07:00
SkGrTexturePixelRef.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00