aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu
Commit message (Collapse)AuthorAge
* add new file GrPathUtils.cppGravatar reed@google.com2011-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1017 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix ref leak on GrGpu.Gravatar bsalomon@google.com2011-03-29
| | | | | | | | Review URL: http://codereview.appspot.com/4323043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1015 2bbb7eff-a529-9590-31e7-b0007b416f81
* Two optimizations for the tesselated path renderer:Gravatar senorblanco@chromium.org2011-03-29
| | | | | | | | | | | | | | 1) If the path contains a single convex subpath, and we're not using inverted fill modes, skip the tesselation and draw the interpolated path as a triangle fan directly. 2) Use GrDrawTarget.set*SourceToArray(), rather than creating a new AutoReleaseGeometry, saving a copy of the vertex and index data. Review URL: http://codereview.appspot.com/4280076/ git-svn-id: http://skia.googlecode.com/svn/trunk@1014 2bbb7eff-a529-9590-31e7-b0007b416f81
* This CL implements a tesselated path renderer, using GLU's libtess. All of theGravatar senorblanco@chromium.org2011-03-28
| | | | | | | | | | | | | | | | | | | | | fill modes except hairline are supported. Note that the path renderer is not enabled by default; to enable it, replace "GrCreatePathRenderer_none.cpp" with "GrCreatePathRenderer_tesselated.cpp" in skia.gyp, and run gyp_skia, and build. This change also contains a number of build fixes for Win32 (for building SampleApp on VS2008) and Mac (for my ancient Mac Pro which supports GL_EXT_framebuffer_object but not GL_ARB_framebuffer_object). Also, priorityq-heap.c was removed from the SampleApp build, since it's #included by priorityq.c (weird, I know). NB: When this change is rolled into chrome, some modifications to chromium's skia.gyp will be necessary. Review URL: http://codereview.appspot.com/4289072/ git-svn-id: http://skia.googlecode.com/svn/trunk@1012 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add way to determine at link time what path renderer will be used.Gravatar bsalomon@google.com2011-03-25
| | | | | | | | Added mechanism for a custom path renderer to punt and fallback to default path renderer git-svn-id: http://skia.googlecode.com/svn/trunk@1005 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix direct-to-stencil clippath rendering logic in GrGpu.Gravatar bsalomon@google.com2011-03-24
| | | | | | Review URL: http://codereview.appspot.com/4273104/ git-svn-id: http://skia.googlecode.com/svn/trunk@1001 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rename flag that disables stencil buffer creationGravatar bsalomon@google.com2011-03-24
| | | | | | | | Review URL: http://codereview.appspot.com/4273103/ git-svn-id: http://skia.googlecode.com/svn/trunk@1000 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GL_CHROMIUM_framebuffer_multisample support.Gravatar bsalomon@google.com2011-03-23
| | | | | | | | Review URL: http://codereview.appspot.com/4287072/ git-svn-id: http://skia.googlecode.com/svn/trunk@984 2bbb7eff-a529-9590-31e7-b0007b416f81
* add GR at the endGravatar reed@google.com2011-03-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@981 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix macro in Chrome's GL config fileGravatar bsalomon@google.com2011-03-22
| | | | | | | Review URL: http://codereview.appspot.com/4308041/ git-svn-id: http://skia.googlecode.com/svn/trunk@980 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove redundant defines of GR_GL macros.Gravatar bsalomon@google.com2011-03-22
| | | | | | | | | | Patch submitted by weiwei.li@intel.com Review URL: http://codereview.appspot.com/4290060/ git-svn-id: http://skia.googlecode.com/svn/trunk@977 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove IMG multisample texture support.Gravatar bsalomon@google.com2011-03-21
| | | | | | | | | This never worked correctly. The texture loses multisample status when the resolve occurs. We never had code to re-establish it. Also, we'd have to handle the case where you resolve but then want to render to it again without clearing. Review URL: http://codereview.appspot.com/4274074/ git-svn-id: http://skia.googlecode.com/svn/trunk@974 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove old GR_* macros for GL extensions in favor of GrGLDefines.hGravatar bsalomon@google.com2011-03-21
| | | | | | | | | Review URL: http://codereview.appspot.com/4275061/ git-svn-id: http://skia.googlecode.com/svn/trunk@972 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GR_DLL builds to Ganesh (minimal exports for Chrome multi-dll for now).Gravatar bsalomon@google.com2011-03-21
| | | | | | | | | Review URL: http://codereview.appspot.com/4301044/ git-svn-id: http://skia.googlecode.com/svn/trunk@970 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove the compile-time selection of the GL implementation based on theGravatar twiz@google.com2011-03-18
| | | | | | | | | | | | | GR_SUPPORT_GLDESKTOP family of macros. Support for the platform is configured dynamically, by querying the fBindingsExported member of active GrGLInterface instance. Review: http://codereview.appspot.com/4298048/ git-svn-id: http://skia.googlecode.com/svn/trunk@960 2bbb7eff-a529-9590-31e7-b0007b416f81
* This CL removes all dependencies on GL headers across all of Ganesh. NewGravatar twiz@google.com2011-03-18
| | | | | | | | | | | GrGLint, etc. types are introduced, and new GR_GL_XXXX constants for use at all GL call-sites. Review: http://codereview.appspot.com/4272061/ git-svn-id: http://skia.googlecode.com/svn/trunk@959 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert GR_STATIC_RECT_VB in GrGLConfig_chrome.hGravatar bsalomon@google.com2011-03-18
| | | | | | | Review URL: http://codereview.appspot.com/4282057/ git-svn-id: http://skia.googlecode.com/svn/trunk@958 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make chrome use the static square vb when drawing rects.Gravatar bsalomon@google.com2011-03-16
| | | | | | | | Review URL: http://codereview.appspot.com/4280053/ git-svn-id: http://skia.googlecode.com/svn/trunk@949 2bbb7eff-a529-9590-31e7-b0007b416f81
* need a separate texture for each maskformat in atlasmgrGravatar reed@google.com2011-03-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@942 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add blend constant color and use it for lcd text common case (no fancy blend ↵Gravatar bsalomon@google.com2011-03-15
| | | | | | | | or shaded text) Review URL: http://codereview.appspot.com/4274057/ git-svn-id: http://skia.googlecode.com/svn/trunk@941 2bbb7eff-a529-9590-31e7-b0007b416f81
* Correction of GLES build issue introduced by in revision: Gravatar twiz@google.com2011-03-15
| | | | | | | | | | | http://code.google.com/p/skia/source/detail?r=937 Issue: http://code.google.com/p/skia/issues/detail?id=174 Review: http://codereview.appspot.com/4288047/ git-svn-id: http://skia.googlecode.com/svn/trunk@940 2bbb7eff-a529-9590-31e7-b0007b416f81
* support lcd16 in text atlas (sans shader support)Gravatar reed@google.com2011-03-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@939 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implementation of a GL-virtualization layer for Skia. This allows forGravatar twiz@google.com2011-03-14
| | | | | | | | | | | | | | | | environments using skia to specify a GL implementation at run-time, instead of relying on the linker to pull in the appropriate GL impl. A new structure, GrGLInterface is exposed. This struct contains a set of function pointers that should point to an appropriate GL implementation. This change also removes the reliance on GLew on windows builds. Review: http://codereview.appspot.com/4254059/ git-svn-id: http://skia.googlecode.com/svn/trunk@937 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upstreaming changes from android.Gravatar djsollen@google.com2011-03-14
| | | | | | | | | | - fix compile warnings in the GPU code - upstream android specific code (ifdef protected) - fail gracefully when a custom allocator fails git-svn-id: http://skia.googlecode.com/svn/trunk@936 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove "true ||" in conditional that was accidentally checked in.Gravatar bsalomon@google.com2011-03-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@916 2bbb7eff-a529-9590-31e7-b0007b416f81
* Delete GL tex ID when last of GrGLTexture or GrGLRenderTarget that reference ↵Gravatar bsalomon@google.com2011-03-10
| | | | | | it is destroyed git-svn-id: http://skia.googlecode.com/svn/trunk@915 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make flush discardable and lazily reset contextGravatar bsalomon@google.com2011-03-10
| | | | | | | | Review URL: http://codereview.appspot.com/4259059/ git-svn-id: http://skia.googlecode.com/svn/trunk@914 2bbb7eff-a529-9590-31e7-b0007b416f81
* If we compute an exact clip bounds prefer it over user passed bounds. Also ↵Gravatar bsalomon@google.com2011-03-08
| | | | | | | | | | clarify that bounds are conservative. Review URL: http://codereview.appspot.com/4254063/ git-svn-id: http://skia.googlecode.com/svn/trunk@909 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add filters to organize the VS project. Remove unused Gr files.Gravatar bsalomon@google.com2011-03-08
| | | | | | Review URL http://codereview.appspot.com/4243064/ git-svn-id: http://skia.googlecode.com/svn/trunk@904 2bbb7eff-a529-9590-31e7-b0007b416f81
* add LF at end of file (dumb warning)Gravatar reed@google.com2011-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@902 2bbb7eff-a529-9590-31e7-b0007b416f81
* add LF at end of file (ancient warning appeased)Gravatar reed@google.com2011-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@901 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warning about uninit var subpathClosedGravatar bsalomon@google.com2011-03-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@897 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix Sample App on Win32 GL window resize, fix sk->gr convexity hint, fix ↵Gravatar bsalomon@google.com2011-03-04
| | | | | | | | | grpath uninit warnings Review URL http://codereview.appspot.com/4247055/ git-svn-id: http://skia.googlecode.com/svn/trunk@895 2bbb7eff-a529-9590-31e7-b0007b416f81
* add origin to deviceGravatar reed@google.com2011-03-04
| | | | | | | | used for interpreting the clipstack when a device is a layer git-svn-id: http://skia.googlecode.com/svn/trunk@894 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixups for clipstack, convexity test for paths.Gravatar bsalomon@google.com2011-03-04
| | | | | | Review URL http://codereview.appspot.com/4250056/ git-svn-id: http://skia.googlecode.com/svn/trunk@891 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix () warningGravatar reed@google.com2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@889 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for clipstack to Gr. GrClip is now a list of rects and paths ↵Gravatar bsalomon@google.com2011-03-03
| | | | | | with set operations to combine them. The stencil buffer is used to perform the set operations to put the clip into the stencil buffer. Building Gr's clip from Skia's clipStack is currently disabled due to the fact that Skia's clipStack is relative to the root layer not the current layer. This will be fixed in a subsequent CL. git-svn-id: http://skia.googlecode.com/svn/trunk@878 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix double delete of vb pool and missing delete of ib poolGravatar bsalomon@google.com2011-02-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@860 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix bool bug so we can multisample nowGravatar reed@google.com2011-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@851 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix line endings in Gr files and set svn eol style to LFGravatar bsalomon@google.com2011-02-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@832 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make a separate path renderer object. Move enum types to GrTypes.hGravatar bsalomon@google.com2011-02-22
| | | | | | | | Review URL http://codereview.appspot.com/4167067/ git-svn-id: http://skia.googlecode.com/svn/trunk@829 2bbb7eff-a529-9590-31e7-b0007b416f81
* suppress uninit warning in rb-treeGravatar bsalomon@google.com2011-02-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@826 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add red black treeGravatar bsalomon@google.com2011-02-22
| | | | | | | | Review URL: http://codereview.appspot.com/4184063 git-svn-id: http://skia.googlecode.com/svn/trunk@823 2bbb7eff-a529-9590-31e7-b0007b416f81
* can't use this in STATIC_ASSERT on windowsGravatar reed@google.com2011-02-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@820 2bbb7eff-a529-9590-31e7-b0007b416f81
* Avoid putting adding vertex buffers to the pool when setting the complex clip.Gravatar bsalomon@google.com2011-02-18
| | | | | | Review URL: http://codereview.appspot.com/4180058/ git-svn-id: http://skia.googlecode.com/svn/trunk@817 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warning about non-local anonymous structGravatar bsalomon@google.com2011-02-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@815 2bbb7eff-a529-9590-31e7-b0007b416f81
* Moving GrGLIRect to include directory to fix build break using make files. ↵Gravatar bsalomon@google.com2011-02-18
| | | | | | (At some point we need to move many of the non-public headers to src) git-svn-id: http://skia.googlecode.com/svn/trunk@814 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reduce glGets for stencil bits.Gravatar bsalomon@google.com2011-02-18
| | | | | | | | Clean up GL vs Gr rect conventions for viewport and scissor. Review URL: http://codereview.appspot.com/4185056/ git-svn-id: http://skia.googlecode.com/svn/trunk@813 2bbb7eff-a529-9590-31e7-b0007b416f81
* Clean up geterror / log macros and globals for debugging. disable geterror ↵Gravatar bsalomon@google.com2011-02-17
| | | | | | | | in chrome by default. Review URL: http://codereview.appspot.com/4170058/ git-svn-id: http://skia.googlecode.com/svn/trunk@810 2bbb7eff-a529-9590-31e7-b0007b416f81
* Hide alloc size vs content size below APIGravatar bsalomon@google.com2011-02-17
| | | | | | | Remove old gl shaders class Move texture matrix to sampler class git-svn-id: http://skia.googlecode.com/svn/trunk@808 2bbb7eff-a529-9590-31e7-b0007b416f81