Currently we assume if an image has been drawn asynchronously, it will never been drawn synchronously after that. The conditions, which controls synchronous versus asynchronous drawing, rely on the settings and the image size. These condition will include soon other things which change at runtime like, for example, an image will be drawn asynchronously only for the first time a tile is painted. But after that the image will be drawn synchronously. So we need to be more efficient and try to use the already decoded frames instead of decoding new ones unnecessarily.
Created attachment 315055 [details] Patch
Comment on attachment 315055 [details] Patch Attachment 315055 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/4096924 New failing tests: imported/w3c/IndexedDB-private-browsing/idbfactory_open12.html
Created attachment 315062 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
<rdar://problem/33384343>
The fix of this bug was included in https://bugs.webkit.org/show_bug.cgi?id=174451 *** This bug has been marked as a duplicate of bug 174451 ***
Comment on attachment 315055 [details] Patch Unflagging and obsoleting, since this patch has been resolved as a duplicate.