• Armin Le Grand's avatar
    Support buffering SystemDependent GraphicData (III) · 66232248
    Armin Le Grand yazdı
    This change is for speedup of fat line drawing when using
    X11. This is a long-term problem which never really progressed,
    but is avoided using Cairo in the future. Still - if used,
    speedup using current state and buffering possibilities.
    
    Two speedup steps will be used:
    (1) The tesselation is no longer done using trapezoids. That
    works (but was done wrong leaving artifacts) but is not fast
    and done every time. It is even not done with FatLines and
    more than 1000 points.
    New version will use triangulation. Dspite using the existing
    triangulator (that works but is slow) extend the FatLine
    geometry creator to directly create triangles.
    This is also necessary since for buffering that data a
    transformation-invariant version is needed (in device coordinates
    the data changes all the time when scrolling). Trapezoids are
    by definition *not* transformation-invariant (e.g. rotation)
    
    (2) Buffer that triangulation - with the needed care and watch.
    It is e.g. necessary to react on 'hairlines' since these change
    their logical LineWidth view-dependent (zoom). In those cases, the
    buffered data *has* to be removed due to the base for buffering is
    the created FatLine geometry based on one stable logical LineWidth
    
    Also took the time to adapt B2DPolygonTriangulator to use an
    own data type (B2DTriangle) and a vector of these for better
    understandability and security. Adapted all usages as needed.
    
    Change-Id: Iedb2932b094a8786fd9c32d0d0ab1ca603a1a7b2
    Reviewed-on: https://gerrit.libreoffice.org/60818
    Tested-by: Jenkins
    Reviewed-by: 's avatarArmin Le Grand <Armin.Le.Grand@cib.de>
    66232248
Adı
Son kayıt (commit)
Son güncelleme
..
opengl Loading commit data...
source Loading commit data...
workben Loading commit data...
Library_cairocanvas.mk Loading commit data...
Library_canvasfactory.mk Loading commit data...
Library_canvastools.mk Loading commit data...
Library_directx9canvas.mk Loading commit data...
Library_gdipluscanvas.mk Loading commit data...
Library_oglcanvas.mk Loading commit data...
Library_simplecanvas.mk Loading commit data...
Library_vclcanvas.mk Loading commit data...
Makefile Loading commit data...
Module_canvas.mk Loading commit data...
Package_opengl.mk Loading commit data...
README Loading commit data...
StaticLibrary_directxcanvas.mk Loading commit data...