diff options
author | Chet Haase <chet@google.com> | 2011-04-26 07:28:09 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2011-04-27 14:23:29 -0700 |
commit | 8a5cc92a150bae38ec43732d941b38bb381fe153 (patch) | |
tree | 24bf32e7fcc20ab94e64f57e6f72bd8762d3bdf9 /libs/hwui/Program.h | |
parent | b4a56f10d875dc62a9c73008f98596c7e32fc249 (diff) | |
download | frameworks_base-8a5cc92a150bae38ec43732d941b38bb381fe153.zip frameworks_base-8a5cc92a150bae38ec43732d941b38bb381fe153.tar.gz frameworks_base-8a5cc92a150bae38ec43732d941b38bb381fe153.tar.bz2 |
Fix various hw-accelerated line/point bugs
All accelerated lines are now rendered as quads. Hairlines used to
be rendered as GL_LINES, but these lines don't render the same as our
non-accelerated lines, so we're using quads for everything. Also, fixed
a bug in the way that we were offsetting quads (and not offseting points)
to ensure that our lines/points actuall start on the same pixels as
Skia's.
Change-Id: I51b923cc08a9858444c430ba07bc8aa0c83cbe6a
Diffstat (limited to 'libs/hwui/Program.h')
-rw-r--r-- | libs/hwui/Program.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h index afc6f3d..764cb05 100644 --- a/libs/hwui/Program.h +++ b/libs/hwui/Program.h @@ -81,7 +81,7 @@ public: * transform matrices. */ void set(const mat4& projectionMatrix, const mat4& modelViewMatrix, - const mat4& transformMatrix); + const mat4& transformMatrix, bool offset = false); /** * Sets the color associated with this shader. |