aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src
Commit message (Collapse)AuthorAge
...
* 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
* 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
* Batch consecutive draw rects.Gravatar bsalomon@google.com2011-02-16
| | | | | | Review URL: http://codereview.appspot.com/4178057/ git-svn-id: http://skia.googlecode.com/svn/trunk@800 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix param order in setVertexSourceToBuffer calls due to r786 when ↵Gravatar bsalomon@google.com2011-02-14
| | | | | | | | GR_STATIC_RECT_VB is 1 Review URL: http://codereview.appspot.com/4179047/ git-svn-id: http://skia.googlecode.com/svn/trunk@788 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor how Gr handles vertex and index data. GrGpu and GrInOrderDrawBuffer ↵Gravatar bsalomon@google.com2011-02-14
| | | | | | | | both GrBufferAllocPool to manage reserved and set-to-array vertex and index data. rietveld issue 4188049 git-svn-id: http://skia.googlecode.com/svn/trunk@786 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove debugging printf that was accidentally left in 783.Gravatar bsalomon@google.com2011-02-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@784 2bbb7eff-a529-9590-31e7-b0007b416f81
* git-svn-id: http://skia.googlecode.com/svn/trunk@783 ↵Gravatar bsalomon@google.com2011-02-11
| | | | 2bbb7eff-a529-9590-31e7-b0007b416f81
* When we create the GL context and FBO on mac for the GM test also setup the ↵Gravatar bsalomon@google.com2011-02-07
| | | | | | | | | | viewport and clear the stencil. In GrGpuGL::readPixels make sure current rendertarget has been made current in GL before calling glReadPixels git-svn-id: http://skia.googlecode.com/svn/trunk@761 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warning about size_t >= 0 (which must always be true)Gravatar reed@google.com2011-02-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@760 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warnings on linux build (strict aliasing, cons init order, vars used ↵Gravatar bsalomon@google.com2011-02-03
| | | | | | only in asserts) git-svn-id: http://skia.googlecode.com/svn/trunk@756 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make aggressive shader opts an option in GrUserConfig.h. Currently just ↵Gravatar bsalomon@google.com2011-02-02
| | | | | | controls whether color=white optimization is applied (eliminates reading color varying and modulation by color). This was already a compile time option just not exposed through user config. git-svn-id: http://skia.googlecode.com/svn/trunk@754 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make enabling static rect VB configurable by user config file.Gravatar bsalomon@google.com2011-02-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@753 2bbb7eff-a529-9590-31e7-b0007b416f81
* Attempt to simplify NPOT texture caps. Also fixes case where textures would ↵Gravatar bsalomon@google.com2011-02-01
| | | | | | unnecessarily be bloated to POT. Adds setting of sampler's filter setting in paint conversion. git-svn-id: http://skia.googlecode.com/svn/trunk@751 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds ability to draw rects using a unit square vertex buffer. Useful when ↵Gravatar bsalomon@google.com2011-02-01
| | | | | | | | | | matrix/uniform changes are less expensive than sending new verts. Adds optional matrix parameters to GrContext drawRect and drawRectToRect so that non-axis-aligned matrices can be drawn using these functions. codereview Issue 4105049 git-svn-id: http://skia.googlecode.com/svn/trunk@749 2bbb7eff-a529-9590-31e7-b0007b416f81
* initialize int var-args to placate chrome's runtime checkGravatar reed@google.com2011-01-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@746 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix slow performance on desktops by uping our max-texture-dim from 512 toGravatar reed@google.com2011-01-28
| | | | | | | | whatever the gpu itself broadcasts. git-svn-id: http://skia.googlecode.com/svn/trunk@742 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace UINT32_MAX with portable macroGravatar reed@google.com2011-01-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@741 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warnings, including using GrTCast<> to go from &Obj -> uint32_t*Gravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@732 2bbb7eff-a529-9590-31e7-b0007b416f81
* fixes for some warnings:Gravatar reed@google.com2011-01-25
| | | | | | | | | | | - #if of something that was not defined - explicit constructor call for baseclass in copy-constructor of subclass http://code.google.com/p/skia/issues/detail?id=112 git-svn-id: http://skia.googlecode.com/svn/trunk@727 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrGpuGLShaders2 to gr_files.mkGravatar bsalomon@google.com2011-01-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@722 2bbb7eff-a529-9590-31e7-b0007b416f81
* Increase number of stages from 1 to 2Gravatar bsalomon@google.com2011-01-24
| | | | | | | | | Move GrTextContext from stage 0 to stage 1 so it doesn't conflict with GrPaint (allow textured text) Switch to dynamically generated shaders git-svn-id: http://skia.googlecode.com/svn/trunk@721 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rev the GrContext interface. Context has draw* functions that take a new ↵Gravatar bsalomon@google.com2011-01-21
| | | | | | | | | | | GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context. Remove unused/unsupported point size (we don't draw non-hairline points using GL points). Change current* getter functions to get* for consistency. Fix bounds when drawing inverse-filled paths. git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
* In GrMatrix's setScale, setSkew, & setTranslate check whether the values ↵Gravatar bsalomon@google.com2011-01-20
| | | | | | passed in make the matrix identity before setting the typemask. git-svn-id: http://skia.googlecode.com/svn/trunk@717 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace GR_GL(GetIntegerv with GR_GL_GetIntegerv to ensure that we zero-initGravatar reed@google.com2011-01-20
| | | | | | | | the var-arg (needed for chrome) git-svn-id: http://skia.googlecode.com/svn/trunk@716 2bbb7eff-a529-9590-31e7-b0007b416f81
* update chrome-specific glconfig (should make versions of this for mac/win/linux)Gravatar reed@google.com2011-01-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@715 2bbb7eff-a529-9590-31e7-b0007b416f81
* Cleanup including of GL headers and provide way to include custom headers, ↵Gravatar bsalomon@google.com2011-01-19
| | | | | | extension getter. git-svn-id: http://skia.googlecode.com/svn/trunk@713 2bbb7eff-a529-9590-31e7-b0007b416f81
* add compile flag GR_SKIP_2POINTRADIAL_PROGRAMS to ignore the 2point-radialGravatar reed@google.com2011-01-19
| | | | | | | | shader programs (for now), which have problematic on some GPUs git-svn-id: http://skia.googlecode.com/svn/trunk@710 2bbb7eff-a529-9590-31e7-b0007b416f81
* add getter/setter for TextureCache, so that clients can make their budgetGravatar reed@google.com2011-01-18
| | | | | | | | | decisions at runtime or per-context, rather than just at compile-time. Leaving in the default values as is. git-svn-id: http://skia.googlecode.com/svn/trunk@709 2bbb7eff-a529-9590-31e7-b0007b416f81
* add GR_BUILD_CHROME for now. hopefully we can replace it with other,Gravatar reed@google.com2011-01-18
| | | | | | | | non-chrome-specific refactoring to accomodate those differences. git-svn-id: http://skia.googlecode.com/svn/trunk@708 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove notion of default rendertarget. This doesn't map well to usage ↵Gravatar bsalomon@google.com2011-01-18
| | | | | | patterns outside sample app. Make binding between SkGpuDevice and a GrRenderTarget more explicit. Create method on GrContext to wrap the current target in the 3D API with a GrRenderTarget. git-svn-id: http://skia.googlecode.com/svn/trunk@706 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix stencil format array.Gravatar bsalomon@google.com2011-01-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@703 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix BGRA on ES Issue 109.Gravatar bsalomon@google.com2011-01-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@702 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix vertex buffer size computation when deferred text is disabled. This ↵Gravatar bsalomon@google.com2011-01-18
| | | | | | change makes it consistent with recent changes to the vertex layout bitfield in Issue 106. git-svn-id: http://skia.googlecode.com/svn/trunk@701 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use macro to call gl.Gravatar bsalomon@google.com2011-01-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@696 2bbb7eff-a529-9590-31e7-b0007b416f81