Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add a way to flash backing store and view updates
The new WKPageSetDebugPaintFlags SPI can be used to control whether backing store and/or view updates are flashed. A blueish color is used for view updates, and a purpleish color is used for backing store updates. The flashing currently only works on Windows. Fixes <http://webkit.org/b/54303>. Reviewed by Anders Carlsson. * UIProcess/API/C/WKPage.cpp: (WKPageSetDebugPaintFlags): (WKPageGetDebugPaintFlags): * UIProcess/API/C/WKPagePrivate.h: Added. These call through to WebPageProxy. * UIProcess/API/mac/PageClientImpl.h: * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::flashBackingStoreUpdates): * UIProcess/API/qt/qwkpage.cpp: (QWKPagePrivate::flashBackingStoreUpdates): * UIProcess/API/qt/qwkpage_p.h: Stubbed out new PageClient functions. * UIProcess/DrawingAreaProxyImpl.cpp: (WebKit::DrawingAreaProxyImpl::incorporateUpdate): Tell the WebPageProxy to flash the backing store updates we're performing. * UIProcess/PageClient.h: Added flashBackingStoreUpdates. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::flashBackingStoreUpdates): Call through to the PageClient. (WebKit::WebPageProxy::viewUpdatesFlashColor): Return the blueish color used for view updates. (WebKit::WebPageProxy::backingStoreUpdatesFlashColor): Return the purpleish color used for backing store updates. * UIProcess/WebPageProxy.h: (WebKit::WebPageProxy::setDebugPaintFlags): (WebKit::WebPageProxy::debugPaintFlags): Added these simple accessors. * UIProcess/win/WebView.cpp: (WebKit::flashRects): (WebKit::createBrush): New helper functions. (WebKit::WebView::onPaintEvent): Flash the dirty region if requested. (WebKit::WebView::flashBackingStoreUpdates): Added. Calls through to flashRects. * UIProcess/win/WebView.h: Added flashBackingStoreUpdates. * win/WebKit2Generated.make: Export WKPagePrivate.h so clients can use it. Canonical link: https://commits.webkit.org/68488@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@78488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
159 additions
and 1 deletion.
- +56 −0 Source/WebKit2/ChangeLog
- +10 −0 Source/WebKit2/UIProcess/API/C/WKPage.cpp
- +9 −0 Source/WebKit2/UIProcess/API/C/WKPagePrivate.h
- +2 −0 Source/WebKit2/UIProcess/API/mac/PageClientImpl.h
- +6 −0 Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm
- +6 −0 Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
- +2 −0 Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
- +4 −1 Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp
- +2 −0 Source/WebKit2/UIProcess/PageClient.h
- +17 −0 Source/WebKit2/UIProcess/WebPageProxy.cpp
- +13 −0 Source/WebKit2/UIProcess/WebPageProxy.h
- +30 −0 Source/WebKit2/UIProcess/win/WebView.cpp
- +1 −0 Source/WebKit2/UIProcess/win/WebView.h
- +1 −0 Source/WebKit2/win/WebKit2Generated.make
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters