aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src
Commit message (Collapse)AuthorAge
* 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
* Remove static from template specilizations (linux build complained)Gravatar reed@google.com2011-01-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@695 2bbb7eff-a529-9590-31e7-b0007b416f81
* Towards issue #106Gravatar bsalomon@google.com2011-01-13
| | | | | | | Adds notion of texture multiple stages but currently just uses 1. git-svn-id: http://skia.googlecode.com/svn/trunk@694 2bbb7eff-a529-9590-31e7-b0007b416f81
* Should be calculating alignment based on the vertex size.Gravatar bsalomon@google.com2011-01-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@690 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename DrawState to DrState -- MS decided to #define DrawState, complicatingGravatar reed@google.com2011-01-12
| | | | | | | | our (compiler) lives :( git-svn-id: http://skia.googlecode.com/svn/trunk@689 2bbb7eff-a529-9590-31e7-b0007b416f81
* add helpers to initialize our var-int args before calling GL. Some driversGravatar reed@google.com2011-01-12
| | | | | | | | | assert that those are zero on input, even though they are logically output-only parameters. git-svn-id: http://skia.googlecode.com/svn/trunk@688 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SampleApp build on Win32 (still requires glew, this needs to be fixed)Gravatar bsalomon@google.com2011-01-05
| | | | | | | | In fbo test funciton set min filter to nearest (for systems that don't support rendering to level of a texture that isn't mip map complete.) Add a lot more sample slides to the win32 build Fix texture red/blue color swap on windows. git-svn-id: http://skia.googlecode.com/svn/trunk@677 2bbb7eff-a529-9590-31e7-b0007b416f81
* add template macro to "safely" perform casts w/o breaking strict-aliasingGravatar reed@google.com2011-01-05
| | | | | | | | fix aliasing warnings git-svn-id: http://skia.googlecode.com/svn/trunk@674 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix bug where createTexture may bind a texture to GL without ever updating ↵Gravatar bsalomon@google.com2010-12-23
| | | | | | | | | | | | fHWState.fTexture (when texture is not bound to FBO). Other minor changes: Add commented out GL logging define to GrUserConfig Remove dead GrGpuD3D9 file from xcode proj git-svn-id: http://skia.googlecode.com/svn/trunk@663 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix build for linuxGravatar reed@google.com2010-12-23
| | | | | | | | partial impl for GPU on linux (need getProcAddress and SkEGLContext) git-svn-id: http://skia.googlecode.com/svn/trunk@661 2bbb7eff-a529-9590-31e7-b0007b416f81
* Stop using GrSamplerState to track the texture parameters for GL textures. ↵Gravatar bsalomon@google.com2010-12-23
| | | | | | It has become larger and now holds state that isn't tracked per-texture by GL. Also remove unused setSamplerStateImm from GrGpuGL git-svn-id: http://skia.googlecode.com/svn/trunk@659 2bbb7eff-a529-9590-31e7-b0007b416f81
* Delete D3D9 gpu class. Was fixed-function only, had significant defeciencies ↵Gravatar bsalomon@google.com2010-12-23
| | | | | | around vertex array formats, and is hasn't been updated with respect to parent class changes (won't compile). git-svn-id: http://skia.googlecode.com/svn/trunk@656 2bbb7eff-a529-9590-31e7-b0007b416f81
* silence some of our startup spewGravatar reed@google.com2010-12-23
| | | | | | | | tie skia and gr's debug symbols together in the Makefile git-svn-id: http://skia.googlecode.com/svn/trunk@654 2bbb7eff-a529-9590-31e7-b0007b416f81
* add gpu to the default makefileGravatar reed@google.com2010-12-23
| | | | | | | | move skia-gpu files into skia/src/gpu git-svn-id: http://skia.googlecode.com/svn/trunk@653 2bbb7eff-a529-9590-31e7-b0007b416f81
* flush inorder drawtarget (i.e. flushText) before we purge the atlas/cacheGravatar reed@google.com2010-12-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@651 2bbb7eff-a529-9590-31e7-b0007b416f81
* Force bool StageDesc to be a byte so that our memcmp equality test will ↵Gravatar bsalomon@google.com2010-12-22
| | | | | | work. Fixes static assert failure in xcode release build. git-svn-id: http://skia.googlecode.com/svn/trunk@650 2bbb7eff-a529-9590-31e7-b0007b416f81
* add gpu backend (not hooked up yet)Gravatar reed@google.com2010-12-22
git-svn-id: http://skia.googlecode.com/svn/trunk@649 2bbb7eff-a529-9590-31e7-b0007b416f81