skia2/gpu/include
senorblanco@chromium.org 92e0f222fb Edge antialiasing for convex shapes in Ganesh
This patch implements edge antialiasing for convex shapes, using the fragment
shader to compare against the edge equations for each triangle.  Currently, it
only works for flat shaded primitives (i.e., it was not integrated into the
"active stages" path).  The skia.gyp changes cause this code to be compiled into
SampleApp, but do not enable the tesselated path by default.

Notes:  the SkOSWindow_Unix.cpp change is to silence a valgrind warning about
memcpy() with overlapping regions.  The GrBinHashKey change is to avoid running
a two-pass hash (GrProgramDesc is now 52 bytes or so, exceeding the 32 byte
default size).

Review URL:  http://codereview.appspot.com/4519054/



git-svn-id: http://skia.googlecode.com/svn/trunk@1314 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-12 15:49:15 +00:00
..
FlingState.h test of writable Skia tree in a chrome tree. 2011-04-13 21:28:23 +00:00
GrAllocator.h Fix warnings. 2011-04-28 17:33:34 +00:00
GrAllocPool.h Batch consecutive draw rects. 2011-02-16 16:12:19 +00:00
GrAtlas.h Add GrResource base class for ibs, texs, vbs, etc. 2011-03-30 21:26:44 +00:00
GrClip.h Fix alignment issues with stack allocated memory allocated as bytes but used to hold other types. 2011-04-20 15:47:04 +00:00
GrClipIterator.h Fixups for clipstack, convexity test for paths. 2011-03-04 20:29:08 +00:00
GrColor.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrConfig.h Switch to GrGpuGLShaders (instead of GrGpuGLShaders2). 2011-05-05 12:39:20 +00:00
GrContext_impl.h Add 4x4 downsample filter with 4 bilinear texture reads, use for ssaa. 2011-05-05 12:33:22 +00:00
GrContext.h Remove GrContext.h dependence on GrGpu.h 2011-05-02 21:14:59 +00:00
GrDrawTarget.h Edge antialiasing for convex shapes in Ganesh 2011-05-12 15:49:15 +00:00
GrFontScaler.h support lcd16 in text atlas (sans shader support) 2011-03-15 15:40:16 +00:00
GrGeometryBuffer.h Add GrResource base class for ibs, texs, vbs, etc. 2011-03-30 21:26:44 +00:00
GrGLConfig_chrome.h Adds a build flag for GL to never use vertex attributes that don't have per-vertex values. 2011-04-19 21:15:09 +00:00
GrGLConfig.h SampleApp builds skia on Linux with BGRA pixel order, but Ganesh's SampleApp 2011-05-04 20:12:01 +00:00
GrGLDefines.h add GR at the end 2011-03-22 17:49:13 +00:00
GrGLIndexBuffer.h Remove dependence on platform GL headers. Remove code that attempts to infer GL function pointers on various platforms. Instead add platform-specific implementations for Windows and Mac. (GLX coming) 2011-04-04 17:13:52 +00:00
GrGLInterface.h Add all ES2 glUniform functions to GrGLInterface. Add interface validation for fixed pipe or shader pipe use. 2011-05-04 12:35:39 +00:00
GrGLIRect.h Remove dependence on platform GL headers. Remove code that attempts to infer GL function pointers on various platforms. Instead add platform-specific implementations for Windows and Mac. (GLX coming) 2011-04-04 17:13:52 +00:00
GrGLTexture.h Add APIs and plumbing for external rendertaret-textures w/ and w/out MSAA. 2011-04-11 17:58:48 +00:00
GrGLVertexBuffer.h Remove dependence on platform GL headers. Remove code that attempts to infer GL function pointers on various platforms. Instead add platform-specific implementations for Windows and Mac. (GLX coming) 2011-04-04 17:13:52 +00:00
GrGlyph.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrGpu.h Add 4x4 downsample filter with 4 bilinear texture reads, use for ssaa. 2011-05-05 12:33:22 +00:00
GrGpuVertex.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrIndexBuffer.h Add GrResource base class for ibs, texs, vbs, etc. 2011-03-30 21:26:44 +00:00
GrInOrderDrawBuffer.h Make Gr clear take a rect for a partial-clear 2011-04-27 19:55:29 +00:00
GrInstanceCounter.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrIPoint.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrKey.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrMatrix.h Make GrMatrix an alias of SkMatrix. Add new methods to SkMatrix. 2011-05-10 13:52:42 +00:00
GrMemory.h Refactor how Gr handles vertex and index data. GrGpu and GrInOrderDrawBuffer both GrBufferAllocPool to manage reserved and set-to-array vertex and index data. 2011-02-14 16:51:21 +00:00
GrMesh.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrNoncopyable.h Add GR_DLL builds to Ganesh (minimal exports for Chrome multi-dll for now). 2011-03-21 19:51:57 +00:00
GrPaint.h Add color filters to gpu path. 2011-05-11 14:05:25 +00:00
GrPath.h Add bounding rect for paths 2011-04-27 21:13:04 +00:00
GrPathIter.h Share code with SkRect 2011-05-09 17:00:02 +00:00
GrPathRenderer.h 4x4 SSAA with improvements in determination of when to apply. Still disabled at compile time. 2011-05-02 12:53:34 +00:00
GrPathSink.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrPlotMgr.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrPoint.h remove #if 0 code 2011-05-09 13:37:36 +00:00
GrRandom.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrRect.h Share code with SkRect 2011-05-09 17:00:02 +00:00
GrRectanizer.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrRefCnt.h Add GrResource base class for ibs, texs, vbs, etc. 2011-03-30 21:26:44 +00:00
GrResource.h Add GrResource base class for ibs, texs, vbs, etc. 2011-03-30 21:26:44 +00:00
GrSamplerState.h Add 4x4 downsample filter with 4 bilinear texture reads, use for ssaa. 2011-05-05 12:33:22 +00:00
GrScalar.h use SkPoint, creating an alias for GrPoint 2011-05-06 19:26:26 +00:00
GrStencil.h Fixups for clipstack, convexity test for paths. 2011-03-04 20:29:08 +00:00
GrStopwatch.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrStringBuilder.h Replace GrStringBuilder with SkString. First step in cleaning up the shader generator. Slight performance hit when creating a new shader (<10% of total shader gen time on my Windows box is spent in building our string before handing it to GL). Much of this can be recovered by better usage pattern of SkString in coming revisions. 2011-05-06 13:53:47 +00:00
GrTArray.h Fix alignment issues with stack allocated memory allocated as bytes but used to hold other types. 2011-04-20 15:47:04 +00:00
GrTBSearch.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrTDArray.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrTemplates.h Adding newline at end of file to fix compiler error. 2011-04-27 23:11:21 +00:00
GrTesselatedPathRenderer.h Edge antialiasing for convex shapes in Ganesh 2011-05-12 15:49:15 +00:00
GrTextContext.h Make GrMatrix an alias of SkMatrix. Add new methods to SkMatrix. 2011-05-10 13:52:42 +00:00
GrTextStrike.h Add GrResource base class for ibs, texs, vbs, etc. 2011-03-30 21:26:44 +00:00
GrTexture.h 4x4 SSAA with improvements in determination of when to apply. Still disabled at compile time. 2011-05-02 12:53:34 +00:00
GrTextureCache.h Add lockKeylessTexture() for caching texture without a content key. 2011-04-25 15:51:06 +00:00
GrTHashCache.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrTLList.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrTouchGesture.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00
GrTypes.h Remove GrContext.h dependence on GrGpu.h 2011-05-02 21:14:59 +00:00
GrUserConfig.h Reduce glGets for stencil bits. 2011-02-18 16:09:55 +00:00
GrVertexBuffer.h Add GrResource base class for ibs, texs, vbs, etc. 2011-03-30 21:26:44 +00:00
SkUIView.h add gpu backend (not hooked up yet) 2010-12-22 21:39:39 +00:00