diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-30 10:08:22 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-30 10:08:22 +0000 |
commit | 559a8833f0eae4af37dc0ffc3ee97e1fb14817b1 (patch) | |
tree | a386900cea6eec76e4f8b5d7133f8e14c3864887 /include/core/SkCanvas.h | |
parent | 9681eebb0e441cee25b6faac82c3728512acda27 (diff) | |
download | skia-559a8833f0eae4af37dc0ffc3ee97e1fb14817b1.tar.gz |
Fix the rendering error of SkDraw::drawVertices in gpu path for solid color.
If both textures and vertex-colors are NULL, drawVertices should stroke hairlines with the paint's color.
This behavior is a useful debugging mode to visualize the mesh.
BUG=skia:2266
R=bsalomon@google.com, reed@google.com
Author: yunchao.he@intel.com
Review URL: https://codereview.chromium.org/189963004
git-svn-id: http://skia.googlecode.com/svn/trunk@14985 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r-- | include/core/SkCanvas.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 81dcfe19b..f8876e6eb 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -1002,6 +1002,11 @@ public: }; /** Draw the array of vertices, interpreted as triangles (based on mode). + + If both textures and vertex-colors are NULL, it strokes hairlines with + the paint's color. This behavior is a useful debugging mode to visualize + the mesh. + @param vmode How to interpret the array of vertices @param vertexCount The number of points in the vertices array (and corresponding texs and colors arrays if non-null) |