disable_dcheck_that_fails_with_software_compositing.patch 1.4 KB

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