mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 597950 - Part 2: Expose API to create a D2D surface from a D3D10 Texture. r=vlad
This commit is contained in:
parent
afde1b864a
commit
81f24452aa
@ -54,6 +54,14 @@ gfxD2DSurface::gfxD2DSurface(HANDLE handle, gfxContentType aContent)
|
||||
(cairo_content_t)aContent));
|
||||
}
|
||||
|
||||
gfxD2DSurface::gfxD2DSurface(ID3D10Texture2D *texture, gfxContentType aContent)
|
||||
{
|
||||
Init(cairo_d2d_surface_create_for_texture(
|
||||
gfxWindowsPlatform::GetPlatform()->GetD2DDevice(),
|
||||
texture,
|
||||
(cairo_content_t)aContent));
|
||||
}
|
||||
|
||||
gfxD2DSurface::gfxD2DSurface(cairo_surface_t *csurf)
|
||||
{
|
||||
Init(csurf, PR_TRUE);
|
||||
|
@ -42,6 +42,8 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
struct ID3D10Texture2D;
|
||||
|
||||
class THEBES_API gfxD2DSurface : public gfxASurface {
|
||||
public:
|
||||
|
||||
@ -53,6 +55,8 @@ public:
|
||||
|
||||
gfxD2DSurface(HANDLE handle, gfxContentType aContent);
|
||||
|
||||
gfxD2DSurface(ID3D10Texture2D *texture, gfxContentType aContent);
|
||||
|
||||
gfxD2DSurface(cairo_surface_t *csurf);
|
||||
|
||||
virtual ~gfxD2DSurface();
|
||||
|
Loading…
Reference in New Issue
Block a user