Title: [211205] trunk/Source/WebKit2
- Revision
- 211205
- Author
- [email protected]
- Date
- 2017-01-26 01:19:48 -0800 (Thu, 26 Jan 2017)
Log Message
[Threaded Compositor] Update also the contents size when creating the threaded compositor
https://bugs.webkit.org/show_bug.cgi?id=167452
Reviewed by Žan Doberšek.
In r210954 we ensured that the threaded compositor and the viewport controller were created with the initial web
page size. If we don't update the contents size, the visible rectangle will be empty and tiles won't be created
until contentsSizeDidChange is called. It's even possible, when entering AC mode on demand, that we create the
layer tree host after the contents size changed, in which case nothing is rendered unless we resize the window.
* WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
(WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (211204 => 211205)
--- trunk/Source/WebKit2/ChangeLog 2017-01-26 09:05:01 UTC (rev 211204)
+++ trunk/Source/WebKit2/ChangeLog 2017-01-26 09:19:48 UTC (rev 211205)
@@ -1,3 +1,18 @@
+2017-01-26 Carlos Garcia Campos <[email protected]>
+
+ [Threaded Compositor] Update also the contents size when creating the threaded compositor
+ https://bugs.webkit.org/show_bug.cgi?id=167452
+
+ Reviewed by Žan Doberšek.
+
+ In r210954 we ensured that the threaded compositor and the viewport controller were created with the initial web
+ page size. If we don't update the contents size, the visible rectangle will be empty and tiles won't be created
+ until contentsSizeDidChange is called. It's even possible, when entering AC mode on demand, that we create the
+ layer tree host after the contents size changed, in which case nothing is rendered unless we resize the window.
+
+ * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
+ (WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost):
+
2017-01-26 Csaba Osztrogonác <[email protected]>
[Mac][cmake] Fix the build after r211160
Modified: trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp (211204 => 211205)
--- trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp 2017-01-26 09:05:01 UTC (rev 211204)
+++ trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp 2017-01-26 09:19:48 UTC (rev 211205)
@@ -55,6 +55,12 @@
, m_surface(AcceleratedSurface::create(webPage))
, m_viewportController(webPage.size())
{
+ if (FrameView* frameView = m_webPage.mainFrameView()) {
+ auto contentsSize = frameView->contentsSize();
+ if (!contentsSize.isEmpty())
+ m_viewportController.didChangeContentsSize(contentsSize);
+ }
+
IntSize scaledSize(m_webPage.size());
scaledSize.scale(m_webPage.deviceScaleFactor());
float scaleFactor = m_webPage.deviceScaleFactor() * m_viewportController.pageScaleFactor();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes