Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
64b23f6c
Commit
64b23f6c
authored
10 years ago
by
Henri Verbeet
Committed by
Alexandre Julliard
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dxgi: Implement dxgi_surface_SetPrivateData().
parent
41c44f91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/dxgi/dxgi_private.h
+1
-0
1 addition, 0 deletions
dlls/dxgi/dxgi_private.h
dlls/dxgi/surface.c
+8
-2
8 additions, 2 deletions
dlls/dxgi/surface.c
with
9 additions
and
2 deletions
dlls/dxgi/dxgi_private.h
+
1
−
0
View file @
64b23f6c
...
...
@@ -157,6 +157,7 @@ struct dxgi_surface
IUnknown
IUnknown_iface
;
IUnknown
*
outer_unknown
;
LONG
refcount
;
struct
wined3d_private_store
private_store
;
IDXGIDevice
*
device
;
DXGI_SURFACE_DESC
desc
;
...
...
This diff is collapsed.
Click to expand it.
dlls/dxgi/surface.c
+
8
−
2
View file @
64b23f6c
...
...
@@ -71,7 +71,10 @@ static ULONG STDMETHODCALLTYPE dxgi_surface_inner_Release(IUnknown *iface)
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
surface
,
refcount
);
if
(
!
refcount
)
{
wined3d_private_store_cleanup
(
&
surface
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
surface
);
}
return
refcount
;
}
...
...
@@ -110,9 +113,11 @@ static ULONG STDMETHODCALLTYPE dxgi_surface_Release(IDXGISurface *iface)
static
HRESULT
STDMETHODCALLTYPE
dxgi_surface_SetPrivateData
(
IDXGISurface
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
struct
dxgi_surface
*
surface
=
impl_from_IDXGISurface
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
dxgi_set_private_data
(
&
surface
->
private_store
,
guid
,
data_size
,
data
);
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_surface_SetPrivateDataInterface
(
IDXGISurface
*
iface
,
...
...
@@ -210,6 +215,7 @@ HRESULT dxgi_surface_init(struct dxgi_surface *surface, IDXGIDevice *device,
surface
->
IDXGISurface_iface
.
lpVtbl
=
&
dxgi_surface_vtbl
;
surface
->
IUnknown_iface
.
lpVtbl
=
&
dxgi_surface_inner_unknown_vtbl
;
surface
->
refcount
=
1
;
wined3d_private_store_init
(
&
surface
->
private_store
);
surface
->
outer_unknown
=
outer
?
outer
:
&
surface
->
IUnknown_iface
;
surface
->
device
=
device
;
surface
->
desc
=
*
desc
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment