aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
Commit message (Collapse)AuthorAge
* Make GrAAConvexPathRender support paths with > 64K verts.Gravatar bsalomon@google.com2013-05-14
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/15120004 git-svn-id: http://skia.googlecode.com/svn/trunk@9118 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9117 2bbb7eff-a529-9590-31e7-b0007b416f81
* Key shader on whether frag pos read is relative to top-left or bottom-leftGravatar bsalomon@google.com2013-05-13
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/14633007 git-svn-id: http://skia.googlecode.com/svn/trunk@9113 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix stroked roundrects on Nexus 10.Gravatar commit-bot@chromium.org2013-05-13
| | | | | | | | | | | | | | | Due to floating point precision errors, using the formula b^2x^2 + a^2y^2 - a^2b^2 doesn't work on the Nexus 10 GPU. Changed to use x^2/a^2 + y^2/b^2 - 1. Addresses issue 1290. R=bsalomon@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/15039016 git-svn-id: http://skia.googlecode.com/svn/trunk@9110 2bbb7eff-a529-9590-31e7-b0007b416f81
* Partial revert of r9087Gravatar robertphillips@google.com2013-05-13
| | | | | | | | https://codereview.chromium.org/14858035/ git-svn-id: http://skia.googlecode.com/svn/trunk@9106 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9103 2bbb7eff-a529-9590-31e7-b0007b416f81
* Don't call purgeCache() from within GrResource memebers.Gravatar bsalomon@google.com2013-05-10
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/14864020 git-svn-id: http://skia.googlecode.com/svn/trunk@9102 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrPathCmdGravatar bsalomon@google.com2013-05-10
| | | | | | | | R=reed@google.com Review URL: https://codereview.chromium.org/15068008 git-svn-id: http://skia.googlecode.com/svn/trunk@9097 2bbb7eff-a529-9590-31e7-b0007b416f81
* Further defer devRect computation in gpu rect drawingGravatar robertphillips@google.com2013-05-10
| | | | | | | | https://codereview.chromium.org/14798007/ git-svn-id: http://skia.googlecode.com/svn/trunk@9090 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update shader rect drawing path for r9087 (removal of isIRect "opt")Gravatar robertphillips@google.com2013-05-10
| | | | | | | | | | https://codereview.chromium.org/14972013/ (SkipBuildbotRuns) git-svn-id: http://skia.googlecode.com/svn/trunk@9089 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove isIRect "optimization" & defer computation of device Rect in AA rect ↵Gravatar robertphillips@google.com2013-05-10
| | | | | | | | | | rendering https://chromiumcodereview.appspot.com/14890021/ git-svn-id: http://skia.googlecode.com/svn/trunk@9087 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9086 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrGLShaderBuilder check whether GrEffect advertised that it would ↵Gravatar commit-bot@chromium.org2013-05-09
| | | | | | | | | | | | require the dst color or fragment position R=senorblanco@chromium.org, robertphillips@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/14998007 git-svn-id: http://skia.googlecode.com/svn/trunk@9074 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move loops that chain together effects into GrGLShaderBuilder from GrGLProgram.Gravatar bsalomon@google.com2013-05-09
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/14925010 git-svn-id: http://skia.googlecode.com/svn/trunk@9073 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r9055. Gravatar jvanverth@google.com2013-05-08
| | | | | | | Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@9061 2bbb7eff-a529-9590-31e7-b0007b416f81
* Better method for rendering AA ellipses.Gravatar commit-bot@chromium.org2013-05-08
| | | | | | | | | | | | | | | | | | | | | | | This uses the standard ellipse equation as a signed distance test, and adjusts the result by the length of the gradient at that point to get a better approximation of the distance to the ellipse. It replaces the standard ellipse and roundrect shader renderers. Also adds a check to see if the curvature extrema of the stroke are less than the curvature extrema of the ellipse (i.e. the radius of curvature is larger). In this case, it's no longer an ellipse and we can't use this renderer. Committed: http://code.google.com/p/skia/source/detail?r=9016 R=bsalomon@google.com, robertphillips@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/14938004 git-svn-id: http://skia.googlecode.com/svn/trunk@9055 2bbb7eff-a529-9590-31e7-b0007b416f81
* Comment out invalid assert.Gravatar bsalomon@google.com2013-05-08
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/15021008 git-svn-id: http://skia.googlecode.com/svn/trunk@9053 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland r9043 with fix.Gravatar bsalomon@google.com2013-05-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9046 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert 9043Gravatar bsalomon@google.com2013-05-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9044 2bbb7eff-a529-9590-31e7-b0007b416f81
* SkGpuDevice: Delay locking bitmap pixels until we have a known texture cache ↵Gravatar bsalomon@google.com2013-05-07
| | | | | | | | | | miss. Reivew URL: https://codereview.chromium.org/15035004/ git-svn-id: http://skia.googlecode.com/svn/trunk@9043 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reverting r9016 due to Nexus7 GM regressionsGravatar jvanverth@google.com2013-05-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9020 2bbb7eff-a529-9590-31e7-b0007b416f81
* Better method for rendering AA ellipses.Gravatar commit-bot@chromium.org2013-05-06
| | | | | | | | | | | | | | | | | | | | | This uses the standard ellipse equation as a signed distance test, and adjusts the result by the length of the gradient at that point to get a better approximation of the distance to the ellipse. It replaces the standard ellipse and roundrect shader renderers. Also adds a check to see if the curvature extrema of the stroke are less than the curvature extrema of the ellipse (i.e. the radius of curvature is larger). In this case, it's no longer an ellipse and we can't use this renderer. R=bsalomon@google.com, robertphillips@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/14938004 git-svn-id: http://skia.googlecode.com/svn/trunk@9016 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9002 2bbb7eff-a529-9590-31e7-b0007b416f81
* This may potentially fix a chromium issue and shouldn't hurt, so if anyone ↵Gravatar sugoi@google.com2013-05-03
| | | | | | | | | | agrees that this fix should be harmless, we can try merging it in to see if it's enough to fix "Invalid pointer write in GrRenderTarget::onRelease". R=bsalomon@google.com, robertphillips@google.com Review URL: https://codereview.chromium.org/14607003 git-svn-id: http://skia.googlecode.com/svn/trunk@8982 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for GL_*_shader__framebuffer_fetchGravatar bsalomon@google.com2013-05-03
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/14875002 git-svn-id: http://skia.googlecode.com/svn/trunk@8980 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-05-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8976 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix GL extension printing on core profiles.Gravatar bsalomon@google.com2013-05-02
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/14864002 git-svn-id: http://skia.googlecode.com/svn/trunk@8970 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add geometry-based rotated AA rect drawing pathGravatar robertphillips@google.com2013-05-02
| | | | | | | | https://codereview.chromium.org/14854005/ git-svn-id: http://skia.googlecode.com/svn/trunk@8961 2bbb7eff-a529-9590-31e7-b0007b416f81
* Axis aligned shader-based rect drawingGravatar robertphillips@google.com2013-05-02
| | | | | | | | https://codereview.chromium.org/14314004/ git-svn-id: http://skia.googlecode.com/svn/trunk@8960 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable AA for ovals and roundrects if MSAA is enabled.Gravatar commit-bot@chromium.org2013-05-02
| | | | | | | | | | | | | Also remove GrPaint from a number of methods -- we only use it to get the AA state. R=bsalomon@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/14109033 git-svn-id: http://skia.googlecode.com/svn/trunk@8954 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for GL_EXT_multisampled_render_to_texture.Gravatar bsalomon@google.com2013-05-01
| | | | | | | | R=robertphillips@google.com Review URL: https://codereview.chromium.org/14091008 git-svn-id: http://skia.googlecode.com/svn/trunk@8939 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add FontMgr to DirectWrite.Gravatar bungeman@google.com2013-05-01
| | | | | | | https://codereview.chromium.org/14314008/ git-svn-id: http://skia.googlecode.com/svn/trunk@8934 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-04-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8919 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minor optimizationGravatar robertphillips@google.com2013-04-29
| | | | | | | | https://codereview.chromium.org/14495006/ git-svn-id: http://skia.googlecode.com/svn/trunk@8912 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove guard against checking for copytexsubimage2d ptr in ↵Gravatar commit-bot@chromium.org2013-04-29
| | | | | | | | | | | | GrGLInterface::validate() R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/13863021 git-svn-id: http://skia.googlecode.com/svn/trunk@8907 2bbb7eff-a529-9590-31e7-b0007b416f81
* Plumbed in discard_framebuffer extensionGravatar robertphillips@google.com2013-04-29
| | | | | | | | https://codereview.chromium.org/14461006/ git-svn-id: http://skia.googlecode.com/svn/trunk@8906 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-04-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8873 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove useless SkRect::sortGravatar robertphillips@google.com2013-04-25
| | | | | | | | https://codereview.chromium.org/14203008/ git-svn-id: http://skia.googlecode.com/svn/trunk@8871 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GPU support for roundrectsGravatar commit-bot@chromium.org2013-04-25
| | | | | | | | | | | | | | | This uses the OvalRenderer to render roundrects as "stretched ovals." It adds an additional shader that handles the straight edges of ellipsoid roundrects better, and uses the circle shader for roundrects where the two radii are the same. Only axis-aligned, simple roundrects are supported. Handles fill, stroke and hairline. R=bsalomon@google.com, robertphillips@google.com, reed@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/13852049 git-svn-id: http://skia.googlecode.com/svn/trunk@8859 2bbb7eff-a529-9590-31e7-b0007b416f81
* Exit ~GrContext early if GrContext::init() failed.Gravatar bsalomon@google.com2013-04-24
| | | | | | Review URL: https://codereview.chromium.org/14049028 git-svn-id: http://skia.googlecode.com/svn/trunk@8841 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove static effects from the effect memory pool.Gravatar bsalomon@google.com2013-04-23
| | | | | | Review URL: https://codereview.chromium.org/14081016 git-svn-id: http://skia.googlecode.com/svn/trunk@8828 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add non-separable xfer modes to GPU backend.Gravatar bsalomon@google.com2013-04-22
| | | | | | Review URL: https://codereview.chromium.org/14371014 git-svn-id: http://skia.googlecode.com/svn/trunk@8815 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix gyp files to allow ninja to build 64 bit on Mac.Gravatar commit-bot@chromium.org2013-04-22
| | | | | | | | | | | | | Fix warnings that cropped up building as 64-bit. BUG= R=bsalomon@google.com, bungeman@google.com Author: mtklein@google.com Review URL: https://chromiumcodereview.appspot.com/13852013 git-svn-id: http://skia.googlecode.com/svn/trunk@8814 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_Keeping (SkipBuildbotRuns)Gravatar rmistry@google.com2013-04-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8795 2bbb7eff-a529-9590-31e7-b0007b416f81
* Vertex Attrib configurations now handled as pointers vs. SkSTArraysGravatar robertphillips@google.com2013-04-20
| | | | | | | | https://codereview.chromium.org/14328009/ git-svn-id: http://skia.googlecode.com/svn/trunk@8787 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GR_STATIC_RECT_VBGravatar robertphillips@google.com2013-04-20
| | | | | | | | https://codereview.chromium.org/14367030/ git-svn-id: http://skia.googlecode.com/svn/trunk@8786 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-04-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@8785 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix non-uniform scale and stroked ellipsesGravatar commit-bot@chromium.org2013-04-19
| | | | | | | | | | | | | | | | Strokes were not being scaled properly for ellipses -- the view matrix was being reset before the scale factors were being applied. Scaling the stroke has been moved up higher in the process. Also applies some optimizations suggested by robertphillips. R=robertphillips@google.com Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/14017012 git-svn-id: http://skia.googlecode.com/svn/trunk@8777 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add all remaining separable xfer modes to GPU backend.Gravatar bsalomon@google.com2013-04-19
| | | | | | Review URL: https://codereview.chromium.org/14189024 git-svn-id: http://skia.googlecode.com/svn/trunk@8768 2bbb7eff-a529-9590-31e7-b0007b416f81
* Perform coverage blend with the dst in the shader when using a dst-reading ↵Gravatar bsalomon@google.com2013-04-19
| | | | | | | | xfermode. Review URL: https://codereview.chromium.org/14233006 git-svn-id: http://skia.googlecode.com/svn/trunk@8762 2bbb7eff-a529-9590-31e7-b0007b416f81