| author | Jeff Muizelaar <jmuizelaar@mozilla.com> |
| Wed, 22 Jan 2020 21:23:35 +0000 | |
| changeset 511242 | 49b97ea7f14de57a67c434a6aae5217b21f498a2 |
| parent 511241 | 472207e967c7da65366aadab9fa2547a76ba88b4 |
| child 511243 | 4ed3c01f009d3f7a57acbbe4270b06287f578a9f |
| push id | 37047 |
| push user | malexandru@mozilla.com |
| push date | Thu, 23 Jan 2020 09:54:33 +0000 |
| treeherder | mozilla-central@a1669b599097 [default view] [failures only] |
| perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
| reviewers | gw |
| bugs | 1610949 |
| milestone | 74.0a1 |
| first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
| last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
| gfx/wr/example-compositor/compositor-windows/src/lib.cpp | file | annotate | diff | comparison | revisions |
--- a/gfx/wr/example-compositor/compositor-windows/src/lib.cpp +++ b/gfx/wr/example-compositor/compositor-windows/src/lib.cpp @@ -213,24 +213,27 @@ extern "C" { } RECT window_rect = { 0, 0, width, height }; AdjustWindowRect(&window_rect, WS_OVERLAPPEDWINDOW, FALSE); UINT window_width = static_cast<UINT>(ceil(float(window_rect.right - window_rect.left) * dpiX / 96.f)); UINT window_height = static_cast<UINT>(ceil(float(window_rect.bottom - window_rect.top) * dpiY / 96.f)); LPCWSTR name; + DWORD style; if (enable_compositor) { name = L"example-compositor (DirectComposition)"; + style = WS_EX_NOREDIRECTIONBITMAP; } else { name = L"example-compositor (Simple)"; + style = 0; } window->hWnd = CreateWindowEx( - WS_EX_NOREDIRECTIONBITMAP, + style, CLASS_NAME, name, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, window_width, window_height, NULL,