Changeset 159436 in webkit


Ignore:
Timestamp:
Nov 18, 2013 10:46:11 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[Win] Optimization, no need to erase background before paint.
https://bugs.webkit.org/show_bug.cgi?id=124453

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-11-18
Reviewed by Brent Fulgham.

As the paint will blit a bitmap onto the invalid area (no alpha),
there is no need to erase the background first, as this will be overwritten by the blit.

  • WebView.cpp:

(WebView::WebViewWndProc): Avoid erasing background before paint.

Location:
trunk/Source/WebKit/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/win/ChangeLog

    r159430 r159436  
     12013-11-18  peavo@outlook.com  <peavo@outlook.com>
     2
     3        [Win] Optimization, no need to erase background before paint.
     4        https://bugs.webkit.org/show_bug.cgi?id=124453
     5
     6        Reviewed by Brent Fulgham.
     7
     8        As the paint will blit a bitmap onto the invalid area (no alpha),
     9        there is no need to erase the background first, as this will be overwritten by the blit.
     10
     11        * WebView.cpp:
     12        (WebView::WebViewWndProc): Avoid erasing background before paint.
     13
    1142013-11-18  peavo@outlook.com  <peavo@outlook.com>
    215
  • trunk/Source/WebKit/win/WebView.cpp

    r159430 r159436  
    22302230        }
    22312231        case WM_ERASEBKGND:
    2232             if (webView->usesLayeredWindow()) {
    2233                 // Don't perform a background erase for transparent views.
    2234                 handled = true;
    2235                 lResult = 1;
    2236             }
     2232            // Don't perform a background erase.
     2233            handled = true;
     2234            lResult = 1;
    22372235            break;
    22382236        case WM_PRINTCLIENT:
Note: See TracChangeset for help on using the changeset viewer.