Skip to content

Commit

Permalink
Only flush layers when the exposed rect actually changes
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=134248

Reviewed by Anders Carlsson.


Source/WebCore:
* WebCore.exp.in:

Source/WebKit2:
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::setExposedContentRect):



Canonical link: https://commits.webkit.org/152233@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
anttijk committed Jun 24, 2014
1 parent 58a93db commit 80d3862
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/WebCore/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2014-06-24 Antti Koivisto <antti@apple.com>

Only flush layers when the exposed rect actually changes
https://bugs.webkit.org/show_bug.cgi?id=134248

Reviewed by Anders Carlsson.

* WebCore.exp.in:

2014-06-24 Brady Eidson <beidson@apple.com>

Remove references to "Shader.h" which doesn't currently exist in the project.
Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/WebCore.exp.in
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,7 @@ __ZNK7WebCore10ScrollView16windowToContentsERKNS_7IntRectE
__ZNK7WebCore10ScrollView16windowToContentsERKNS_8IntPointE
__ZNK7WebCore10ScrollView18contentsToRootViewERKNS_7IntRectE
__ZNK7WebCore10ScrollView18contentsToRootViewERKNS_8IntPointE
__ZNK7WebCore10ScrollView18exposedContentRectEv
__ZNK7WebCore10ScrollView18rootViewToContentsERKNS_8IntPointE
__ZNK7WebCore10ScrollView23rootViewToTotalContentsERKNS_8IntPointE
__ZNK7WebCore10ScrollView40documentScrollOffsetRelativeToViewOriginEv
Expand Down
10 changes: 10 additions & 0 deletions Source/WebKit2/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2014-06-24 Antti Koivisto <antti@apple.com>

Only flush layers when the exposed rect actually changes
https://bugs.webkit.org/show_bug.cgi?id=134248

Reviewed by Anders Carlsson.

* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::setExposedContentRect):

2014-06-24 Martin Hock <mhock@apple.com>

[iOS] DOMWindow::outerWidth and outerHeight don't return useful values, so return 0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@
FrameView* frameView = m_webPage.mainFrameView();
if (!frameView)
return;
if (frameView->exposedContentRect() == exposedContentRect)
return;

frameView->setExposedContentRect(exposedContentRect);
scheduleCompositingLayerFlush();
Expand Down

0 comments on commit 80d3862

Please sign in to comment.