Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9745efaf
Commit
9745efaf
authored
Jul 31, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_mesh_GetFactory().
parent
c1fc0084
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
d2d1_private.h
dlls/d2d1/d2d1_private.h
+3
-1
mesh.c
dlls/d2d1/mesh.c
+9
-3
render_target.c
dlls/d2d1/render_target.c
+2
-1
No files found.
dlls/d2d1/d2d1_private.h
View file @
9745efaf
...
...
@@ -175,9 +175,11 @@ struct d2d_mesh
{
ID2D1Mesh
ID2D1Mesh_iface
;
LONG
refcount
;
ID2D1Factory
*
factory
;
};
void
d2d_mesh_init
(
struct
d2d_mesh
*
mesh
)
DECLSPEC_HIDDEN
;
void
d2d_mesh_init
(
struct
d2d_mesh
*
mesh
,
ID2D1Factory
*
factory
)
DECLSPEC_HIDDEN
;
struct
d2d_bitmap
{
...
...
dlls/d2d1/mesh.c
View file @
9745efaf
...
...
@@ -65,16 +65,21 @@ static ULONG STDMETHODCALLTYPE d2d_mesh_Release(ID2D1Mesh *iface)
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
{
ID2D1Factory_Release
(
mesh
->
factory
);
HeapFree
(
GetProcessHeap
(),
0
,
mesh
);
}
return
refcount
;
}
static
void
STDMETHODCALLTYPE
d2d_mesh_GetFactory
(
ID2D1Mesh
*
iface
,
ID2D1Factory
**
factory
)
{
FIXME
(
"iface %p, factory %p stub!
\n
"
,
iface
,
factory
);
struct
d2d_mesh
*
mesh
=
impl_from_ID2D1Mesh
(
iface
);
TRACE
(
"iface %p, factory %p.
\n
"
,
iface
,
factory
);
*
factory
=
NULL
;
ID2D1Factory_AddRef
(
*
factory
=
mesh
->
factory
)
;
}
static
HRESULT
STDMETHODCALLTYPE
d2d_mesh_Open
(
ID2D1Mesh
*
iface
,
ID2D1TessellationSink
**
sink
)
...
...
@@ -93,8 +98,9 @@ static const struct ID2D1MeshVtbl d2d_mesh_vtbl =
d2d_mesh_Open
,
};
void
d2d_mesh_init
(
struct
d2d_mesh
*
mesh
)
void
d2d_mesh_init
(
struct
d2d_mesh
*
mesh
,
ID2D1Factory
*
factory
)
{
mesh
->
ID2D1Mesh_iface
.
lpVtbl
=
&
d2d_mesh_vtbl
;
mesh
->
refcount
=
1
;
ID2D1Factory_AddRef
(
mesh
->
factory
=
factory
);
}
dlls/d2d1/render_target.c
View file @
9745efaf
...
...
@@ -533,6 +533,7 @@ static HRESULT STDMETHODCALLTYPE d2d_d3d_render_target_CreateLayer(ID2D1RenderTa
static
HRESULT
STDMETHODCALLTYPE
d2d_d3d_render_target_CreateMesh
(
ID2D1RenderTarget
*
iface
,
ID2D1Mesh
**
mesh
)
{
struct
d2d_d3d_render_target
*
render_target
=
impl_from_ID2D1RenderTarget
(
iface
);
struct
d2d_mesh
*
object
;
TRACE
(
"iface %p, mesh %p.
\n
"
,
iface
,
mesh
);
...
...
@@ -540,7 +541,7 @@ static HRESULT STDMETHODCALLTYPE d2d_d3d_render_target_CreateMesh(ID2D1RenderTar
if
(
!
(
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
d2d_mesh_init
(
object
);
d2d_mesh_init
(
object
,
render_target
->
factory
);
TRACE
(
"Created mesh %p.
\n
"
,
object
);
*
mesh
=
&
object
->
ID2D1Mesh_iface
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment