Go to the source code of this file.
|
void | GetTests (unsigned *TestCount, PTEST *Tests) |
|
unsigned | NullInit (void **Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | NullCleanup (void *Context, PPERF_INFO PerfInfo) |
|
void | FillProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | FillSmallProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | LinesHorizontalProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | LinesVerticalProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | LinesProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | TextProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
unsigned | AlphaBlendInit (void **Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | AlphaBlendCleanup (void *Context, PPERF_INFO PerfInfo) |
|
void | AlphaBlendProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | GradientHorizontalProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | GradientVerticalProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | GradientProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
void | ScrollProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps) |
|
◆ CLEANUPTESTPROC
◆ INITTESTPROC
◆ PERF_INFO
◆ PPERF_INFO
◆ PTEST
◆ TEST
◆ TESTPROC
◆ AlphaBlendCleanup()
Definition at line 52 of file alphablend.c.
53{
58}
#define HeapFree(x, y, z)
BOOL WINAPI DeleteDC(_In_ HDC)
◆ AlphaBlendInit()
Definition at line 29 of file alphablend.c.
30{
33
37
39 {
41 {
43 }
44 }
45
47
48 return Reps;
49}
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
◆ AlphaBlendProc()
Definition at line 67 of file alphablend.c.
68{
70 unsigned Rep;
72
73 for (Rep = 0; Rep < Reps; Rep++)
74 {
76#if 0
78#endif
82 {
84 }
85 }
86}
static const BLENDFUNCTION BlendFunc
DWORD WINAPI GetLastError(void)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
◆ FillProc()
Definition at line 23 of file fill.c.
24{
25 unsigned Rep;
26
27 for (Rep = 0; Rep < Reps; Rep++)
28 {
31 }
32}
◆ FillSmallProc()
Definition at line 35 of file fill.c.
36{
37#define SMALL_SIZE 16
38 unsigned Rep;
40
43
44 for (Rep = 0; Rep < Reps; Rep++)
45 {
50 {
54 {
56 }
57 }
58 }
59}
◆ GetTests()
◆ GradientHorizontalProc()
Definition at line 97 of file gradient.c.
98{
99 unsigned Rep;
103
105 for (Rep = 0; Rep < Reps; Rep++)
106 {
109 vert[0].
Red = 0xff00;
110 vert[0].
Green = 0xff00 - 0xff00 * Rep / Reps;
111 vert[0].
Blue = 0xff00 * Rep / Reps;
113
116 vert[1].
Red = 0xff00 - 0xff00 * Rep / Reps;
117 vert[1].
Green = 0xff00 * Rep / Reps;
118 vert[1].
Blue = 0xff00;
120
121 GradientFill(Dc, vert, 2, &gcap, 1, GRADIENT_FILL_RECT_H);
122 }
123}
◆ GradientProc()
Definition at line 25 of file gradient.c.
26{
27 unsigned Rep;
31
42 vert[1].
Green = 0xff00;
49 vert[2].
Blue = 0xff00;
54 vert[3].
Green = 0xff00;
65
66 for (Rep = 0; Rep < Reps; Rep++)
67 {
68 switch (2 * Rep / Reps)
69 {
70 case 0:
71 vert[4].
x = PerfInfo->
WndWidth * 2 * Rep / Reps;
79 break;
80 case 1:
89 break;
90 }
91
92 GradientFill(Dc, vert, 6, &gcap, 4, GRADIENT_FILL_TRIANGLE);
93 }
94}
◆ GradientVerticalProc()
Definition at line 126 of file gradient.c.
127{
128 unsigned Rep;
132
134 for (Rep = 0; Rep < Reps; Rep++)
135 {
138 vert[0].
Red = 0xff00 * Rep / Reps;
139 vert[0].
Green = 0xff00 - 0xff00 * Rep / Reps;
140 vert[0].
Blue = 0xff00;
142
145 vert[1].
Red = 0xff00 - 0xff00 * Rep / Reps;
146 vert[1].
Green = 0xff00;
147 vert[1].
Blue = 0xff00 * Rep / Reps;
149
150 GradientFill(Dc, vert, 2, &gcap, 1, GRADIENT_FILL_RECT_V);
151 }
152}
◆ LinesHorizontalProc()
Definition at line 60 of file lines.c.
61{
62 unsigned Rep;
65
66 for (Rep = 0; Rep < Reps; )
67 {
69
71 {
74 }
75 }
76}
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
◆ LinesProc()
Definition at line 23 of file lines.c.
24{
25 unsigned Rep;
26 int Dest;
28
29 for (Rep = 0; Rep < Reps; )
30 {
32
33 for (Dest = 2; Dest < PerfInfo->
WndHeight && Rep < Reps; Rep++, Dest += 2)
34 {
37 }
38
39 for (Dest = PerfInfo->
WndWidth - 2; 0 <= Dest && Rep < Reps; Rep++, Dest -= 2)
40 {
43 }
44
45 for (Dest = PerfInfo->
WndHeight - 2; 0 <= Dest && Rep < Reps; Rep++, Dest -= 2)
46 {
49 }
50
51 for (Dest = 2; Dest < PerfInfo->
WndWidth && Rep < Reps; Rep++, Dest += 2)
52 {
55 }
56 }
57}
◆ LinesVerticalProc()
Definition at line 79 of file lines.c.
80{
81 unsigned Rep;
84
85 for (Rep = 0; Rep < Reps; )
86 {
88
90 {
93 }
94 }
95}
◆ NullCleanup()
◆ NullInit()
Definition at line 56 of file rosperf.c.
57{
59
60 return Reps;
61}
◆ ScrollProc()
Definition at line 23 of file scroll.c.
24{
25 unsigned Rep;
27 int x = 0,
y = 0,
dx = 1,
dy = 1;
28
32
34
35 for (Rep = 0; Rep < Reps; Rep++)
36 {
43 }
44
45}
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
BOOL WINAPI ScrollDC(_In_ HDC, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT)
◆ TextProc()
Definition at line 23 of file text.c.
24{
25 unsigned Rep;
29
30 for (Rep = 0; Rep < Reps; )
31 {
34
35 for (
y = 0;
y < PerfInfo->
WndHeight && Rep < Reps; Rep++,
y += 15)
36 {
37 TextOut(Dc, 0,
y,
L"AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz:?<>0123456789", 66);
38 }
41 }
42}
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI UpdateWindow(_In_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)