Changeset 251820 in webkit


Ignore:
Timestamp:
Oct 30, 2019 4:29:22 PM (4 years ago)
Author:
Chris Dumez
Message:

GPUCanvasContext should not prevent entering the back/forward cache
https://bugs.webkit.org/show_bug.cgi?id=203104
<rdar://problem/56748066>

Reviewed by Tim Horton.

Source/WebCore:

Let pages with a GPUCanvasContext into the back/forward cache. The current implementation
does not run any script.

Test: fast/history/page-cache-gpu-canvas-context.html

  • Modules/webgpu/GPUCanvasContext.h:

LayoutTests:

Add layout test coverage.

  • fast/history/page-cache-gpu-canvas-context-expected.txt: Added.
  • fast/history/page-cache-gpu-canvas-context.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r251818 r251820  
     12019-10-30  Chris Dumez  <cdumez@apple.com>
     2
     3        GPUCanvasContext should not prevent entering the back/forward cache
     4        https://bugs.webkit.org/show_bug.cgi?id=203104
     5        <rdar://problem/56748066>
     6
     7        Reviewed by Tim Horton.
     8
     9        Add layout test coverage.
     10
     11        * fast/history/page-cache-gpu-canvas-context-expected.txt: Added.
     12        * fast/history/page-cache-gpu-canvas-context.html: Added.
     13
    1142019-10-30  Yury Semikhatsky  <yurys@chromium.org>
    215
  • trunk/Source/WebCore/ChangeLog

    r251810 r251820  
     12019-10-30  Chris Dumez  <cdumez@apple.com>
     2
     3        GPUCanvasContext should not prevent entering the back/forward cache
     4        https://bugs.webkit.org/show_bug.cgi?id=203104
     5        <rdar://problem/56748066>
     6
     7        Reviewed by Tim Horton.
     8
     9        Let pages with a GPUCanvasContext into the back/forward cache. The current implementation
     10        does not run any script.
     11
     12        Test: fast/history/page-cache-gpu-canvas-context.html
     13
     14        * Modules/webgpu/GPUCanvasContext.h:
     15
    1162019-10-30  Daniel Bates  <dabates@apple.com>
    217
  • trunk/Source/WebCore/Modules/webgpu/GPUCanvasContext.h

    r251244 r251820  
    4747    Ref<WebGPUSwapChain> configureSwapChain(const WebGPUSwapChainDescriptor&);
    4848
    49     // FIXME: Stubs.
    50     bool hasPendingActivity() const final { return false; }
    51 
    5249private:
    5350    GPUCanvasContext(CanvasBase&);
     
    5855    void reshape(int width, int height) final;
    5956    void markLayerComposited() final;
     57
     58    // ActiveDOMObject.
    6059    const char* activeDOMObjectName() const final { return "GPUCanvasContext"; }
    6160    // FIXME: Stubs.
    6261    void stop() final { }
    63     bool shouldPreventEnteringBackForwardCache_DEPRECATED() const final { return true; } // FIXME: This should never prevent entering the back/forward cache.
    6462
    6563    RefPtr<WebGPUSwapChain> m_swapChain;
Note: See TracChangeset for help on using the changeset viewer.