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
806961ec
Commit
806961ec
authored
Dec 21, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Dec 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Use an iface instead of a vtbl pointer in d3dcompiler_blob.
parent
c1c92d07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
blob.c
dlls/d3dcompiler_43/blob.c
+10
-5
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+1
-1
No files found.
dlls/d3dcompiler_43/blob.c
View file @
806961ec
...
...
@@ -26,6 +26,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dcompiler
);
static
inline
struct
d3dcompiler_blob
*
impl_from_ID3DBlob
(
ID3DBlob
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3dcompiler_blob
,
ID3DBlob_iface
);
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_blob_QueryInterface
(
ID3DBlob
*
iface
,
REFIID
riid
,
void
**
object
)
...
...
@@ -48,7 +53,7 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_blob_QueryInterface(ID3DBlob *iface
static
ULONG
STDMETHODCALLTYPE
d3dcompiler_blob_AddRef
(
ID3DBlob
*
iface
)
{
struct
d3dcompiler_blob
*
blob
=
(
struct
d3dcompiler_blob
*
)
iface
;
struct
d3dcompiler_blob
*
blob
=
impl_from_ID3DBlob
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
blob
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
blob
,
refcount
);
...
...
@@ -58,7 +63,7 @@ static ULONG STDMETHODCALLTYPE d3dcompiler_blob_AddRef(ID3DBlob *iface)
static
ULONG
STDMETHODCALLTYPE
d3dcompiler_blob_Release
(
ID3DBlob
*
iface
)
{
struct
d3dcompiler_blob
*
blob
=
(
struct
d3dcompiler_blob
*
)
iface
;
struct
d3dcompiler_blob
*
blob
=
impl_from_ID3DBlob
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
blob
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
blob
,
refcount
);
...
...
@@ -76,7 +81,7 @@ static ULONG STDMETHODCALLTYPE d3dcompiler_blob_Release(ID3DBlob *iface)
static
void
*
STDMETHODCALLTYPE
d3dcompiler_blob_GetBufferPointer
(
ID3DBlob
*
iface
)
{
struct
d3dcompiler_blob
*
blob
=
(
struct
d3dcompiler_blob
*
)
iface
;
struct
d3dcompiler_blob
*
blob
=
impl_from_ID3DBlob
(
iface
)
;
TRACE
(
"iface %p
\n
"
,
iface
);
...
...
@@ -85,7 +90,7 @@ static void * STDMETHODCALLTYPE d3dcompiler_blob_GetBufferPointer(ID3DBlob *ifac
static
SIZE_T
STDMETHODCALLTYPE
d3dcompiler_blob_GetBufferSize
(
ID3DBlob
*
iface
)
{
struct
d3dcompiler_blob
*
blob
=
(
struct
d3dcompiler_blob
*
)
iface
;
struct
d3dcompiler_blob
*
blob
=
impl_from_ID3DBlob
(
iface
)
;
TRACE
(
"iface %p
\n
"
,
iface
);
...
...
@@ -105,7 +110,7 @@ static const struct ID3D10BlobVtbl d3dcompiler_blob_vtbl =
HRESULT
d3dcompiler_blob_init
(
struct
d3dcompiler_blob
*
blob
,
SIZE_T
data_size
)
{
blob
->
v
tbl
=
&
d3dcompiler_blob_vtbl
;
blob
->
ID3DBlob_iface
.
lpV
tbl
=
&
d3dcompiler_blob_vtbl
;
blob
->
refcount
=
1
;
blob
->
size
=
data_size
;
...
...
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
806961ec
...
...
@@ -44,7 +44,7 @@ const char *debug_d3dcompiler_d3d_blob_part(D3D_BLOB_PART part) DECLSPEC_HIDDEN;
/* ID3DBlob */
struct
d3dcompiler_blob
{
const
struct
ID3D10BlobVtbl
*
vtbl
;
ID3DBlob
ID3DBlob_iface
;
LONG
refcount
;
SIZE_T
size
;
...
...
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