Bug 170082

Summary: [Mac] Remove backing store for layers that are outside the viewport
Product: WebKit Reporter: Andreas Kling <kling>
Component: Layout and RenderingAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, buildbot, commit-queue, kling, rniwa, simon.fraser, zalan
Priority: P2 Keywords: InRadar, Performance
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch
none
Proposed patch
simon.fraser: review+, buildbot: commit-queue-
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
none
Archive of layout-test-results from ews123 for ios-simulator-wk2
none
Proposed patch
simon.fraser: review+
Patch for landing
commit-queue: commit-queue-
Archive of layout-test-results from webkit-cq-01 for mac-elcapitan
none
Patch for landing none

Andreas Kling
Reported 2017-03-24 16:08:32 PDT
<rdar://problem/31245009> On iOS we already detach backing stores for compositing layers outside of the tiling coverage rect. Let's bring this feature Back to the Mac(tm)!
Attachments
Proposed patch (14.41 KB, patch)
2017-03-24 16:18 PDT, Andreas Kling
no flags
Proposed patch (14.62 KB, patch)
2017-03-24 16:22 PDT, Andreas Kling
simon.fraser: review+
buildbot: commit-queue-
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.23 MB, application/zip)
2017-03-24 17:48 PDT, Build Bot
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (14.04 MB, application/zip)
2017-03-24 18:16 PDT, Build Bot
no flags
Proposed patch (21.04 KB, patch)
2017-06-01 18:37 PDT, Andreas Kling
simon.fraser: review+
Patch for landing (21.04 KB, patch)
2017-06-01 20:06 PDT, Andreas Kling
commit-queue: commit-queue-
Archive of layout-test-results from webkit-cq-01 for mac-elcapitan (967.48 KB, application/zip)
2017-06-01 21:10 PDT, WebKit Commit Bot
no flags
Patch for landing (21.04 KB, patch)
2017-06-01 21:25 PDT, Andreas Kling
no flags
Andreas Kling
Comment 1 2017-03-24 16:18:05 PDT
Created attachment 305333 [details] Proposed patch
Build Bot
Comment 2 2017-03-24 16:19:57 PDT
Attachment 305333 [details] did not pass style-queue: ERROR: Source/WebCore/testing/Internals.h:282: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: LayoutTests/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 2 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Andreas Kling
Comment 3 2017-03-24 16:22:02 PDT
Created attachment 305335 [details] Proposed patch
Build Bot
Comment 4 2017-03-24 16:24:06 PDT
Attachment 305335 [details] did not pass style-queue: ERROR: Source/WebCore/testing/Internals.h:282: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 5 2017-03-24 16:43:48 PDT
Comment on attachment 305335 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=305335&action=review > LayoutTests/ChangeLog:4 > + <https://webkit.org/b/170082> This isn't the format that webkit-patch uses.
Build Bot
Comment 6 2017-03-24 17:48:00 PDT
Comment on attachment 305335 [details] Proposed patch Attachment 305335 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3406479 New failing tests: fast/text-autosizing/text-size-adjust-inline-style.html fast/hidpi/filters-and-image-buffer-resolution.html
Build Bot
Comment 7 2017-03-24 17:48:02 PDT
Created attachment 305345 [details] Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 8 2017-03-24 18:16:51 PDT
Comment on attachment 305335 [details] Proposed patch Attachment 305335 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3406508 New failing tests: compositing/backing-store-attachment-1.html
Build Bot
Comment 9 2017-03-24 18:16:54 PDT
Created attachment 305351 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Andreas Kling
Comment 10 2017-06-01 18:37:40 PDT
Created attachment 311790 [details] Proposed patch - Fix the layout test failures by simply never detaching backing stores for scroll control layers. - Add iOS baseline for the new test.
Build Bot
Comment 11 2017-06-01 18:40:38 PDT
Attachment 311790 [details] did not pass style-queue: ERROR: Source/WebCore/testing/Internals.h:297: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 1 in 19 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 12 2017-06-01 19:09:08 PDT
Comment on attachment 311790 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=311790&action=review > Source/WebCore/platform/graphics/GraphicsLayer.h:552 > + bool mayDetachBackingStore() const { return m_mayDetachBackingStore; } canDetach? setNeverDetach?
Andreas Kling
Comment 13 2017-06-01 20:06:21 PDT
Created attachment 311797 [details] Patch for landing Sure, let's go with canDetach.
WebKit Commit Bot
Comment 14 2017-06-01 21:10:27 PDT
Comment on attachment 311797 [details] Patch for landing Rejecting attachment 311797 [details] from commit-queue. New failing tests: compositing/backing-store-attachment-1.html Full output: http://webkit-queues.webkit.org/results/3857545
WebKit Commit Bot
Comment 15 2017-06-01 21:10:28 PDT
Created attachment 311799 [details] Archive of layout-test-results from webkit-cq-01 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: webkit-cq-01 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Andreas Kling
Comment 16 2017-06-01 21:25:55 PDT
Created attachment 311800 [details] Patch for landing Oops, I messed up a bool condition while playing with "canDetach" vs "neverDetach" :| thx2cq for catching it.
Build Bot
Comment 17 2017-06-01 21:27:02 PDT
Attachment 311800 [details] did not pass style-queue: ERROR: Source/WebCore/testing/Internals.h:297: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 1 in 19 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 18 2017-06-01 22:04:17 PDT
Comment on attachment 311800 [details] Patch for landing Clearing flags on attachment: 311800 Committed r217696: <http://trac.webkit.org/changeset/217696>
WebKit Commit Bot
Comment 19 2017-06-01 22:04:19 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.