Platform/GFX/AzureConversion

From MozillaWiki
< Platform‎ | GFX
Revision as of 20:50, 21 June 2012 by JoeDrew (talk | contribs) (Created page with "= Introduction = Since {{bug|715768}}, Windows 7 and Vista have been rendering through a Thebes wrapper to the Direct2D backend of our new 2D API. Unfortunately, that means most ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Since bug 715768, Windows 7 and Vista have been rendering through a Thebes wrapper to the Direct2D backend of our new 2D API. Unfortunately, that means most of the benefit from our better API is lost to the wrapper.

Therefore, we should start writing code that uses the API directly, conditioned on a gfxContext actually wrapping a DrawTarget.

Relevant code:

Of special note: backend-specific types (e.g. DrawTargetCairo) are not exposed to consumer code. You can query a backend for its type, but you cannot downcast it.

Conversion opportunities