aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencil.h
Commit message (Collapse)AuthorAge
* Avoid updating glPathStencilFunc unless it changesGravatar kkinnunen2016-01-25
| | | | | | | Avoid updating glPathStencilFunc unless it changes. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1619623005 Review URL: https://codereview.chromium.org/1619623005
* Replace uses of GrAssert by SkASSERT.Gravatar tfarina@chromium.org2013-08-17
| | | | | | | | R=bsalomon@google.com Review URL: https://codereview.chromium.org/22850006 git-svn-id: http://skia.googlecode.com/svn/trunk@10789 2bbb7eff-a529-9590-31e7-b0007b416f81
* Result of running tools/sanitize_source_files.py (which was added in ↵Gravatar rmistry@google.com2012-08-23
| | | | | | | | | https://codereview.appspot.com/6465078/) This CL is part II of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6474054 git-svn-id: http://skia.googlecode.com/svn/trunk@5263 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minor GrStencilSettings cleanupGravatar bsalomon@google.com2012-06-22
| | | | | | | | Review URL: http://codereview.appspot.com/6329044/ git-svn-id: http://skia.googlecode.com/svn/trunk@4299 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrClipMaskManager configure the stencil and scissor on GrGpuGravatar bsalomon@google.com2012-06-21
| | | | | | | | Review URL: http://codereview.appspot.com/6308096/ git-svn-id: http://skia.googlecode.com/svn/trunk@4288 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minor refactoring to remove duplicate enum from Ganesh (_SetOp -> SkRegion::Op)Gravatar robertphillips@google.com2012-04-25
| | | | | | | | http://codereview.appspot.com/6116047/ git-svn-id: http://skia.googlecode.com/svn/trunk@3763 2bbb7eff-a529-9590-31e7-b0007b416f81
* First pass at stencil clip mask refactoringGravatar robertphillips@google.com2012-04-16
| | | | | | | | http://codereview.appspot.com/6031043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3692 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove on static initializer in GrGpu.cppGravatar digit@google.com2012-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another go for the patch that was initially submitted at http://codereview.appspot.com/5504073/ but crashed the 'gm' unit test. A problem with the previous implementation is that the GrStencilSettings ::isDisabled() and ::doesWrite() methods can modify the object's fFlags member if it is 0, and this will crash at runtime when doing this for a static constant object/structure. I'm not sure why this wasn't triggered previously. We solve the issue by modifying the implementation of GR_STATIC_CONST_STENCIL and GR_STATIC_CONST_STENCIL macros to compute the correct default values for fFlags (which prevents any member modifications in the above methods). This requires moving the definition of the disabled/write flags out of the GrStencilSettings class definition's private section. Note that the flags are renamed to avoid any confusion and conflicts, i.e.: SkIsDisabled_Flag -> SkIsDisabled_StencilFlag SkNotDisabled_Flag -> SkNotDisabled_StencilFlag ... Review URL: https://codereview.appspot.com/5616051 git-svn-id: http://skia.googlecode.com/svn/trunk@3214 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add flags to GrStencilSettingsGravatar bsalomon@google.com2012-01-03
| | | | | | | | Review URL: http://codereview.appspot.com/5489057/ git-svn-id: http://skia.googlecode.com/svn/trunk@2945 2bbb7eff-a529-9590-31e7-b0007b416f81
* GCC requires reinterpret_cast rather than static_cast to cast to privately ↵Gravatar bsalomon@google.com2011-12-15
| | | | | | inherited subclass git-svn-id: http://skia.googlecode.com/svn/trunk@2882 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrStencilState a class to enable future optimizationsGravatar bsalomon@google.com2011-12-15
| | | | | | | Review URL: http://codereview.appspot.com/5492047/ git-svn-id: http://skia.googlecode.com/svn/trunk@2881 2bbb7eff-a529-9590-31e7-b0007b416f81
* Speed up GrDrawState handling.Gravatar tomhudson@google.com2011-11-09
| | | | | | | | | | | | | | | | Compact GrDrawState and nested structs; dynamically only copy and compare the fields actually active on the structs in question. Yields 10-20% speedup of text benchmarks in GPU configuration. Could probably get additional marginal speedup by ignoring unused kernel fields. Has some fragile constructs: pointer math on members to compute sizes of portions of structs. Removes fields necessary for GrTesselatedPathRenderer. git-svn-id: http://skia.googlecode.com/svn/trunk@2644 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move a bunch of headers from include/gpu to src/gpu. Delete some unused files.Gravatar bsalomon@google.com2011-10-20
Review URL: http://codereview.appspot.com/5304047/ git-svn-id: http://skia.googlecode.com/svn/trunk@2506 2bbb7eff-a529-9590-31e7-b0007b416f81