Platform/GFX/Moz2D: Difference between revisions

m
Line 79: Line 79:
* Factory::CreateWrappingDataSourceSurface() – Creates a DataSourceSurface to wrap an existing buffer.
* Factory::CreateWrappingDataSourceSurface() – Creates a DataSourceSurface to wrap an existing buffer.


{ Diagram showing relationship between concrete implementations and these interfaces using Direct2D as an example }
Each backend provides its own implementation of these interfaces however client code always using the backend-independent interfaces.


The implementation of these interfaces typically takes the following form:
<p style="text-align:center">
[[Image:Source-surface-backend.png|SourceSurfaceD2D implements SourceSurface and DataSourceSurfaceD2D implements DataSourceSurface]]
</p>


=== Draw targets ===
=== Draw targets ===
Confirmed users
166

edits