wiki:Direct2DWebKit2016

Version 1 (modified by Jon Davis, 3 years ago) (diff)

--

Direct2D WebKit

Brent Fulgham, Apple

  • Runs on Windows
    • iTunes
    • various utilities
    • EA
    • Sony (kind-of)
  • Uses a proprietary port of CoreGraphics
    • off limits to anyone not at Apple
  • Wrote version in the past that uses Cairo instead
    • doesn’t get updated as much
    • no hardware acceleration
  • MotionMark
    • pretty fast on Windows (IE Edge): 284 points
    • WinCairo isn’t bad either: 166 points
  • Cairo on Windows
    • CPU bound
    • barely uses GPU
  • Windows 7+ has Direct2D
    • 2D graphics library
    • hardware accelerated
    • supports custom GPU shaders
      • opportunity to provide effects that aren’t easily accessible otherwise
  • Tried replacing Cairo with Direct2D
    • only replaced basic calls
    • no architecture changes
    • much faster: 227 points (with rendering issues)
    • still needs work
      • SVG has problems (especially with text)
      • missing a lot of implementations
  • Good path forward for Windows ports
    • Main work is finding the edge cases where rendering has issues
      • MotionMark has:
        • extra arcs
        • font handling issues
        • SVG text problems
    • Remaining work should be fairly small/focused tasks
    • Very few grand architectural changes needed