Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2c29838b
Commit
2c29838b
authored
Feb 14, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Move local stream tracing to a separate channel.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4d512f9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
font.c
dlls/dwrite/font.c
+8
-7
No files found.
dlls/dwrite/font.c
View file @
2c29838b
...
...
@@ -27,6 +27,7 @@
#include "dwrite_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dwrite
);
WINE_DECLARE_DEBUG_CHANNEL
(
dwrite_file
);
#define MS_HEAD_TAG DWRITE_MAKE_OPENTYPE_TAG('h','e','a','d')
#define MS_OS2_TAG DWRITE_MAKE_OPENTYPE_TAG('O','S','/','2')
...
...
@@ -3793,7 +3794,7 @@ static inline struct dwrite_localfontfilestream *impl_from_IDWriteFontFileStream
static
HRESULT
WINAPI
localfontfilestream_QueryInterface
(
IDWriteFontFileStream
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
dwrite_localfontfilestream
*
This
=
impl_from_IDWriteFontFileStream
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
obj
);
TRACE
_
(
dwrite_file
)
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
obj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDWriteFontFileStream
))
{
*
obj
=
iface
;
...
...
@@ -3809,7 +3810,7 @@ static ULONG WINAPI localfontfilestream_AddRef(IDWriteFontFileStream *iface)
{
struct
dwrite_localfontfilestream
*
This
=
impl_from_IDWriteFontFileStream
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
TRACE
_
(
dwrite_file
)
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
return
ref
;
}
...
...
@@ -3825,7 +3826,7 @@ static ULONG WINAPI localfontfilestream_Release(IDWriteFontFileStream *iface)
struct
dwrite_localfontfilestream
*
This
=
impl_from_IDWriteFontFileStream
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
TRACE
_
(
dwrite_file
)
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
UnmapViewOfFile
(
This
->
file_ptr
);
...
...
@@ -3840,7 +3841,7 @@ static HRESULT WINAPI localfontfilestream_ReadFileFragment(IDWriteFontFileStream
{
struct
dwrite_localfontfilestream
*
This
=
impl_from_IDWriteFontFileStream
(
iface
);
TRACE
(
"(%p)->(%p, %s, %s, %p)
\n
"
,
This
,
fragment_start
,
TRACE
_
(
dwrite_file
)
(
"(%p)->(%p, %s, %s, %p)
\n
"
,
This
,
fragment_start
,
wine_dbgstr_longlong
(
offset
),
wine_dbgstr_longlong
(
fragment_size
),
fragment_context
);
*
fragment_context
=
NULL
;
...
...
@@ -3857,13 +3858,13 @@ static HRESULT WINAPI localfontfilestream_ReadFileFragment(IDWriteFontFileStream
static
void
WINAPI
localfontfilestream_ReleaseFileFragment
(
IDWriteFontFileStream
*
iface
,
void
*
fragment_context
)
{
struct
dwrite_localfontfilestream
*
This
=
impl_from_IDWriteFontFileStream
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
fragment_context
);
TRACE
_
(
dwrite_file
)
(
"(%p)->(%p)
\n
"
,
This
,
fragment_context
);
}
static
HRESULT
WINAPI
localfontfilestream_GetFileSize
(
IDWriteFontFileStream
*
iface
,
UINT64
*
size
)
{
struct
dwrite_localfontfilestream
*
This
=
impl_from_IDWriteFontFileStream
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
size
);
TRACE
_
(
dwrite_file
)
(
"(%p)->(%p)
\n
"
,
This
,
size
);
*
size
=
This
->
size
;
return
S_OK
;
}
...
...
@@ -3873,7 +3874,7 @@ static HRESULT WINAPI localfontfilestream_GetLastWriteTime(IDWriteFontFileStream
struct
dwrite_localfontfilestream
*
This
=
impl_from_IDWriteFontFileStream
(
iface
);
ULARGE_INTEGER
li
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
last_writetime
);
TRACE
_
(
dwrite_file
)
(
"(%p)->(%p)
\n
"
,
This
,
last_writetime
);
li
.
u
.
LowPart
=
This
->
entry
->
key
->
writetime
.
dwLowDateTime
;
li
.
u
.
HighPart
=
This
->
entry
->
key
->
writetime
.
dwHighDateTime
;
...
...
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