12345678910111213141516171819202122232425262728 |
- From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
- From: Deepak Mohan <[email protected]>
- Date: Fri, 22 May 2020 17:58:16 -0700
- Subject: Disable DCHECK that fails with software compositing
- Should be removed once https://bugs.chromium.org/p/chromium/issues/detail?id=1084625
- is addressed.
- diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
- index db101407da7678b61af311791dcc6689a51e35b5..6191775ea0566862722741a3c6102867082f33d6 100644
- --- a/ui/views/win/hwnd_message_handler.cc
- +++ b/ui/views/win/hwnd_message_handler.cc
- @@ -2421,13 +2421,13 @@ void HWNDMessageHandler::OnPaint(HDC dc) {
- RECT cr;
- if (GetClientRect(hwnd(), &cr)) {
- if (exposed_pixels_.height() > 0) {
- - DCHECK_GE(cr.bottom, exposed_pixels_.height());
- + //DCHECK_GE(cr.bottom, exposed_pixels_.height());
- RECT rect = {cr.left, cr.bottom - exposed_pixels_.height(), cr.right,
- cr.bottom};
- FillRect(ps.hdc, &rect, brush);
- }
- if (exposed_pixels_.width() > 0) {
- - DCHECK_GE(cr.right, exposed_pixels_.width());
- + //DCHECK_GE(cr.right, exposed_pixels_.width());
- RECT rect = {cr.right - exposed_pixels_.width(), cr.top, cr.right,
- cr.bottom - exposed_pixels_.height()};
- FillRect(ps.hdc, &rect, brush);
|