WebKit Bugzilla
Attachment 341738 Details for
Bug 186185
: Use minimal coverage rect for tiled layers when under memory pressure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
tile-layer-memory-pressure.patch (text/plain), 1.45 KB, created by
Antti Koivisto
on 2018-06-01 00:17:45 PDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Antti Koivisto
Created:
2018-06-01 00:17:45 PDT
Size:
1.45 KB
patch
obsolete
>Index: Source/WebCore/ChangeLog >=================================================================== >--- Source/WebCore/ChangeLog (revision 232389) >+++ Source/WebCore/ChangeLog (working copy) >@@ -1,3 +1,16 @@ >+2018-06-01 Antti Koivisto <antti@apple.com> >+ >+ Use minimal coverage rect for tiled layers when under memory pressure >+ https://bugs.webkit.org/show_bug.cgi?id=186185 >+ <rdar://problem/40713608> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ We do this for the main content layer already. >+ >+ * platform/graphics/ca/GraphicsLayerCA.cpp: >+ (WebCore::GraphicsLayerCA::adjustTiledLayerVisibleRect): >+ > 2018-05-31 Per Arne Vollan <pvollan@apple.com> > > Add OpenGL display mask to WebPage creation parameters. >Index: Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp >=================================================================== >--- Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (revision 232149) >+++ Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (working copy) >@@ -2429,6 +2429,9 @@ FloatRect GraphicsLayerCA::adjustTiledLa > if (oldVisibleRect.isEmpty() || newSize != oldSize || !newVisibleRect.intersects(oldVisibleRect)) > return newVisibleRect; > >+ if (MemoryPressureHandler::singleton().isUnderMemoryPressure()) >+ return newVisibleRect; >+ > const float paddingMultiplier = 2; > > float leftEdgeDelta = paddingMultiplier * (newVisibleRect.x() - oldVisibleRect.x());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 186185
: 341738 |
341755