diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-11-02 13:10:13 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-11-02 05:58:52 +0000 |
commit | 498a40f33908791c3b2409a1ccb4b3c81ea1e032 (patch) | |
tree | 8e447a750e1853d03daa3ded49a77db2bb975d68 /drawinglayer | |
parent | cd44a7288e09ffadd34d9fe1a71b7462429c5c65 (diff) |
vcl: Refactor OutputDevice::TryDrawPolyLineDirect()
I've renamed TryDrawPolyLineDirect() to DrawPolyLineDirect() and also
renamed TryDrawPolyLineDirectNoAACheck() to drawPolyLineDirectNoAACheck().
However, at the same time I feel that there is no need to call on
drawPolyLineDirectNoAACheck in most instances, because DrawPolyLineDirect
does an AA check before it can continue anyway. There is one instance where
constantly checking the AA check is inefficient because it's in a loop, in
that case then we call directly on drawPolyLineDirectNoAACheck, but this is
the only case it is necessary.
Change-Id: Ie0320bfc45b5c0e1ac6ce35912da3e2897af9429
Reviewed-on: https://gerrit.libreoffice.org/12190
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclpixelprocessor2d.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx index ddd6d331dbc4..d287739bca94 100644 --- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx @@ -173,10 +173,7 @@ namespace drawinglayer aLocalPolygon.transform(maCurrentTransformation); // try drawing; if it did not work, use standard fallback - if(mpOutputDevice->TryDrawPolyLineDirect( - aLocalPolygon, - 0.0, - fTransparency)) + if(mpOutputDevice->DrawPolyLineDirect( aLocalPolygon, 0.0, fTransparency)) { return true; } @@ -258,7 +255,7 @@ namespace drawinglayer { bHasPoints = true; - if(mpOutputDevice->TryDrawPolyLineDirect( + if(mpOutputDevice->DrawPolyLineDirect( aSingle, fLineWidth, fTransparency, |