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
e6954d79
Commit
e6954d79
authored
Nov 22, 2023
by
Brendan McGrath
Committed by
Alexandre Julliard
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Add test for singlethreaded draw.
Tests that Direct2D can access D2D exclusive resources whilst the Direct 2D lock is held if the factory type is single threaded
parent
de9eeba7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
d2d1.c
dlls/d2d1/tests/d2d1.c
+18
-0
No files found.
dlls/d2d1/tests/d2d1.c
View file @
e6954d79
...
...
@@ -10784,6 +10784,24 @@ static void test_mt_factory(BOOL d3d11)
ID2D1Multithread_Release
(
multithread
);
release_test_context
(
&
ctx
);
if
(
!
init_test_context
(
&
ctx
,
d3d11
))
return
;
hr
=
ID2D1Factory_QueryInterface
(
ctx
.
factory
,
&
IID_ID2D1Multithread
,
(
void
**
)
&
multithread
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ID2D1Multithread_Enter
(
multithread
);
thread
=
CreateThread
(
NULL
,
0
,
mt_factory_test_thread_draw_func
,
ctx
.
rt
,
0
,
NULL
);
ok
(
!!
thread
,
"Failed to create a thread.
\n
"
);
ret
=
WaitForSingleObject
(
thread
,
1000
);
ok
(
ret
==
WAIT_OBJECT_0
,
"Didn't expect timeout.
\n
"
);
ID2D1Multithread_Leave
(
multithread
);
WaitForSingleObject
(
thread
,
INFINITE
);
CloseHandle
(
thread
);
ID2D1Multithread_Release
(
multithread
);
release_test_context
(
&
ctx
);
}
#define check_system_properties(effect, is_builtin) check_system_properties_(__LINE__, effect, is_builtin)
...
...
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