aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawState.h
Commit message (Collapse)AuthorAge
* This CL implements the Ganesh path for the SkTable_ColorFilter color ↵Gravatar twiz@google.com2012-07-18
| | | | | | | | | transformation. A new texture stage dedicated to color transforms has been added, along with the new custom stage implementing the LUT. Review URL: https://codereview.appspot.com/6351081 git-svn-id: http://skia.googlecode.com/svn/trunk@4663 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix grdrawstate == test when left side has disabled stage and right side ↵Gravatar bsalomon@google.com2012-07-18
| | | | | | | | | | does not Review URL: http://codereview.appspot.com/6427044/ git-svn-id: http://skia.googlecode.com/svn/trunk@4657 2bbb7eff-a529-9590-31e7-b0007b416f81
* Start removing calls to GrDrawState::setTexture() (and ↵Gravatar tomhudson@google.com2012-07-13
| | | | | | | | | | | | GrPaint::setTexture()?) when there's a GrSingleTextureEffect involved holding the texture. http://codereview.appspot.com/6353094/ git-svn-id: http://skia.googlecode.com/svn/trunk@4608 2bbb7eff-a529-9590-31e7-b0007b416f81
* More carefully disable stages in Ganesh to avoid textures or effectsGravatar tomhudson@google.com2012-07-10
| | | | | | | | | | leaking between draw calls. http://codereview.appspot.com/6353083/ git-svn-id: http://skia.googlecode.com/svn/trunk@4510 2bbb7eff-a529-9590-31e7-b0007b416f81
* Initial support for GL_NV_path_renering. Experimental, there are still some ↵Gravatar bsalomon@google.com2012-06-28
| | | | | | | | | | issues to resolve, set gyp variable skia_nv_path_rendering=1 or build flag GR_GL_USE_NV_PATH_RENDERING to enable. http://codereview.appspot.com/6349049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4390 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed alignment issue in Linux buildGravatar robertphillips@google.com2012-06-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4355 2bbb7eff-a529-9590-31e7-b0007b416f81
* plumb SkInstCnt to all subclasses of GrRefCntGravatar reed@google.com2012-06-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4353 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrPaint::*StageEnabled() and GrDrawState::stageEnabled() functions.Gravatar tomhudson@google.com2012-06-25
| | | | | | | | | | | | | | These wrap the question of "is this stage of the shader enabled?" so that we can change the semantics - previously iff there was a texture, now if there is a texture OR a GrCustomStage, soon (post-cl 6306097) iff there is a GrCustomStage, which at that point will hold whatever texture is necessary. http://codereview.appspot.com/6306104/ git-svn-id: http://skia.googlecode.com/svn/trunk@4325 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix misplaced return in GrDrawState::stageDisabled().Gravatar tomhudson@google.com2012-06-25
| | | | | | | | | | Original patch by guanqun.lu@gmail.com http://codereview.appspot.com/6338058/ git-svn-id: http://skia.googlecode.com/svn/trunk@4315 2bbb7eff-a529-9590-31e7-b0007b416f81
* Extend texture release on GrDrawState to also handle custom stages.Gravatar tomhudson@google.com2012-06-22
| | | | | | | | | | | | Add asserts to GrContext::setPaint() to make sure we're keeping things cleaned up. Remove double-call of setPaint() during text context initialization. http://codereview.appspot.com/6324046/ git-svn-id: http://skia.googlecode.com/svn/trunk@4313 2bbb7eff-a529-9590-31e7-b0007b416f81
* Altered GrDrawState to always ref texture and render targetGravatar robertphillips@google.com2012-06-22
| | | | | | | | http://codereview.appspot.com/6251049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4298 2bbb7eff-a529-9590-31e7-b0007b416f81
* releaseTextures portion of GrDrawState Ref textures CL ↵Gravatar robertphillips@google.com2012-06-13
| | | | | | | | | | (http://codereview.appspot.com/6251049/) http://codereview.appspot.com/6299081/ git-svn-id: http://skia.googlecode.com/svn/trunk@4254 2bbb7eff-a529-9590-31e7-b0007b416f81
* Towards NV path renderingGravatar bsalomon@google.com2012-06-11
| | | | | | | | Review URL: http://codereview.appspot.com/6302049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4219 2bbb7eff-a529-9590-31e7-b0007b416f81
* Search and replace change. Some Gr enum value names didn't have a "Gr" in ↵Gravatar bsalomon@google.com2012-06-06
| | | | | | | | | | | their suffix. Verbal LGTM from TomH git-svn-id: http://skia.googlecode.com/svn/trunk@4198 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warnings on Mac in src/gpu and include/gpuGravatar caryclark@google.com2012-06-06
| | | | | | | | | | | | | | | | | | Fix these class of warnings: - unused functions - unused locals - sign mismatch - missing function prototypes - missing newline at end of file - 64 to 32 bit truncation The changes prefer to link in dead code in the debug build with 'if (false)' than to comment it out, but trivial cases are commented out or sometimes deleted if it appears to be a copy/paste error. Review URL: https://codereview.appspot.com/6296044 git-svn-id: http://skia.googlecode.com/svn/trunk@4180 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add a bunch of SK_OVERRIDES and remove and unused functionGravatar bsalomon@google.com2012-05-31
| | | | | | | | Review URL: http://codereview.appspot.com/6245072/ git-svn-id: http://skia.googlecode.com/svn/trunk@4088 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove a couple things missed when deleting the tessellated path rendererGravatar bsalomon@google.com2012-05-30
| | | | | | | | Review URL: http://codereview.appspot.com/6249070/ git-svn-id: http://skia.googlecode.com/svn/trunk@4082 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rolling back 4053Gravatar robertphillips@google.com2012-05-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4054 2bbb7eff-a529-9590-31e7-b0007b416f81
* Speculative fix for Android Debug only crash in r4049Gravatar robertphillips@google.com2012-05-28
| | | | | | | | http://codereview.appspot.com/6251049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4053 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rolling back r4049Gravatar robertphillips@google.com2012-05-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@4051 2bbb7eff-a529-9590-31e7-b0007b416f81
* Altered GrDrawState to always ref textures and render targetGravatar robertphillips@google.com2012-05-25
| | | | | | | | http://codereview.appspot.com/6251049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4049 2bbb7eff-a529-9590-31e7-b0007b416f81
* Stop using GrDrawState to track draw face, dither, and color maskGravatar bsalomon@google.com2012-05-21
| | | | | | | | Review URL: http://codereview.appspot.com/6215071/ git-svn-id: http://skia.googlecode.com/svn/trunk@4009 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove tesselated path renderer and supporting code, glu, and libtess targetGravatar bsalomon@google.com2012-05-11
| | | | | | | | Review URL: http://codereview.appspot.com/6197075/ git-svn-id: http://skia.googlecode.com/svn/trunk@3912 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added documentation of stage/TU allocationGravatar robertphillips@google.com2012-05-10
| | | | | | | | http://codereview.appspot.com/6199058/ git-svn-id: http://skia.googlecode.com/svn/trunk@3888 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix for performance regression due to r3832Gravatar robertphillips@google.com2012-05-04
| | | | | | | | http://codereview.appspot.com/6188045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3840 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed texture ref/unref bug in GrInOrderDrawBuffer/GrDrawStateGravatar robertphillips@google.com2012-05-03
| | | | | | | | http://codereview.appspot.com/6186043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3832 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added gpu AA clipping to old shader pathGravatar robertphillips@google.com2012-05-01
| | | | | | | | http://codereview.appspot.com/6139065/ git-svn-id: http://skia.googlecode.com/svn/trunk@3812 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add comparison and assignment operators to GrSamplerState.Gravatar tomhudson@google.com2012-04-30
| | | | | | | | http://codereview.appspot.com/6137058/ git-svn-id: http://skia.googlecode.com/svn/trunk@3803 2bbb7eff-a529-9590-31e7-b0007b416f81
* Bumped num stages to 4 in preparation for AA clippingGravatar robertphillips@google.com2012-04-27
| | | | | | | | http://codereview.appspot.com/6135046/ git-svn-id: http://skia.googlecode.com/svn/trunk@3783 2bbb7eff-a529-9590-31e7-b0007b416f81
* draw circle paths directly via GPUGravatar bsalomon@google.com2012-04-27
| | | | | | | | | | | Review URL: http://codereview.appspot.com/5696086/ Submitted on behalf of Guanqun.Lu@gmail.com git-svn-id: http://skia.googlecode.com/svn/trunk@3772 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed minor Release & fixed point compiler warnings on LinuxGravatar robertphillips@google.com2012-04-25
| | | | | | | | http://codereview.appspot.com/6118050/ git-svn-id: http://skia.googlecode.com/svn/trunk@3766 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland 3503 with fixGravatar bsalomon@google.com2012-03-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3506 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrDrawState ref counted. (Small step towards a perf improvement.)Gravatar bsalomon@google.com2012-03-26
| | | | | | | | | Review URL: http://codereview.appspot.com/5905069/ git-svn-id: http://skia.googlecode.com/svn/trunk@3498 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkMatrix::cheapEqualTo, use in Gr codeGravatar bsalomon@google.com2012-03-26
| | | | | | | | Review URL: http://codereview.appspot.com/5865057/ git-svn-id: http://skia.googlecode.com/svn/trunk@3488 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix clang compilation warningGravatar bsalomon@google.com2012-03-22
| | | | | | | | | Submitted on behalf of Guanqun.Lu@gmail.com Review URL: http://codereview.appspot.com/5833045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3472 2bbb7eff-a529-9590-31e7-b0007b416f81
* minor improvement, remove some conditionals in GrAAConvexPathRendererGravatar bsalomon@google.com2012-03-05
| | | | | | | | Review URL: http://codereview.appspot.com/5728060 git-svn-id: http://skia.googlecode.com/svn/trunk@3316 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn clipping back on in OSAA pass 1. Skip default cons on GrDrawState when ↵Gravatar bsalomon@google.com2012-01-18
| | | | | | | | | | saving off a GrDrawTarget's state. Review URL: http://codereview.appspot.com/5553051/ git-svn-id: http://skia.googlecode.com/svn/trunk@3067 2bbb7eff-a529-9590-31e7-b0007b416f81
* Attempt to reland 3054Gravatar bsalomon@google.com2012-01-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3056 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r3054 for failing testsGravatar bsalomon@google.com2012-01-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3055 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add constant coverage to GrDrawStateGravatar bsalomon@google.com2012-01-17
| | | | | | | | Review URL: http://codereview.appspot.com/5543052/ git-svn-id: http://skia.googlecode.com/svn/trunk@3054 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix assertGravatar bsalomon@google.com2012-01-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3044 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrDrawState resetGravatar bsalomon@google.com2012-01-17
| | | | | | | | | Review URL: http://codereview.appspot.com/5543059/ git-svn-id: http://skia.googlecode.com/svn/trunk@3043 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add convex path renderer (disabled)Gravatar bsalomon@google.com2012-01-17
| | | | | | | | Review URL: http://codereview.appspot.com/5533061/ git-svn-id: http://skia.googlecode.com/svn/trunk@3040 2bbb7eff-a529-9590-31e7-b0007b416f81
* Towards enabling -Werror in skia on LinuxGravatar bsalomon@google.com2012-01-06
| | | | | | | | Review URL: http://codereview.appspot.com/5516044/ git-svn-id: http://skia.googlecode.com/svn/trunk@2983 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement the color matrix filter in Ganesh. Also, fix and enable the colorGravatar senorblanco@chromium.org2012-01-03
| | | | | | | | | | | | matrix test slide. This was basically implemented in the same places where the blending-based color filter was being done. The shader simply does a mat4 matrix multiply and a vec4 add. Review URL: http://codereview.appspot.com/5489107/ git-svn-id: http://skia.googlecode.com/svn/trunk@2948 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrDrawState::setSampler, use direct access to samplerGravatar bsalomon@google.com2011-12-12
| | | | | | | | Review URL: http://codereview.appspot.com/5476052/ git-svn-id: http://skia.googlecode.com/svn/trunk@2852 2bbb7eff-a529-9590-31e7-b0007b416f81
* Cleanup of r2830.Gravatar bsalomon@google.com2011-12-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2841 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert 2830 and 2831.Gravatar bsalomon@google.com2011-12-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2832 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix assertGravatar bsalomon@google.com2011-12-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2831 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrDrawState a real class with getters and settersGravatar bsalomon@google.com2011-12-08
| | | | | | | | Review URL: http://codereview.appspot.com/5448119/ git-svn-id: http://skia.googlecode.com/svn/trunk@2830 2bbb7eff-a529-9590-31e7-b0007b416f81