Bug 169651

Summary: Make a base class for WebGL and WebGPU contexts
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: ryanhaddad
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
simon.fraser: review+
Patch
buildbot: commit-queue-
Archive of layout-test-results from ews122 for ios-simulator-wk2
none
Patch
buildbot: commit-queue-
Patch
none
Archive of layout-test-results from ews122 for ios-simulator-wk2
none
Patch none

Dean Jackson
Reported 2017-03-14 18:25:32 PDT
Make a base class for WebGL and WebGPU contexts
Attachments
Patch (19.88 KB, patch)
2017-03-14 18:32 PDT, Dean Jackson
simon.fraser: review+
Patch (18.92 KB, patch)
2017-03-15 11:30 PDT, Dean Jackson
buildbot: commit-queue-
Archive of layout-test-results from ews122 for ios-simulator-wk2 (707.13 KB, application/zip)
2017-03-15 13:21 PDT, Build Bot
no flags
Patch (18.92 KB, patch)
2017-03-15 13:27 PDT, Dean Jackson
buildbot: commit-queue-
Patch (19.32 KB, patch)
2017-03-15 14:17 PDT, Dean Jackson
no flags
Archive of layout-test-results from ews122 for ios-simulator-wk2 (798.67 KB, application/zip)
2017-03-15 14:58 PDT, Build Bot
no flags
Patch (19.13 KB, patch)
2017-03-15 15:16 PDT, Dean Jackson
no flags
Dean Jackson
Comment 1 2017-03-14 18:26:26 PDT
Dean Jackson
Comment 2 2017-03-14 18:32:03 PDT
Simon Fraser (smfr)
Comment 3 2017-03-14 19:09:46 PDT
Comment on attachment 304460 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304460&action=review > Source/WebCore/html/HTMLCanvasElement.cpp:397 > + static_cast<GPUBasedCanvasRenderingContext*>(m_context.get())->reshape(width(), height()); This should be downcast<>. > Source/WebCore/html/HTMLCanvasElement.cpp:463 > + static_cast<GPUBasedCanvasRenderingContext*>(m_context.get())->markLayerComposited(); downcast<> > Source/WebCore/html/canvas/GPUBasedCanvasRenderingContext.h:48 > + virtual void reshape(int width, int height) = 0; Maybe IntSize eventually. > Source/WebCore/html/canvas/WebGLRenderingContextBase.h:342 > + void reshape(int width, int height) override; final? > Source/WebCore/html/canvas/WebGLRenderingContextBase.h:344 > + void markLayerComposited() override; final? > Source/WebCore/html/canvas/WebGPURenderingContext.h:52 > + bool isWebGPU() const override { return true; } final? > Source/WebCore/html/canvas/WebGPURenderingContext.h:54 > + void reshape(int width, int height) override; final?
Dean Jackson
Comment 4 2017-03-15 02:43:43 PDT
Ryan Haddad
Comment 5 2017-03-15 09:04:12 PDT
Ryan Haddad
Comment 6 2017-03-15 10:07:02 PDT
Reverted r213977 for reason: This change broke the Windows build. Committed r213985: <http://trac.webkit.org/changeset/213985>
Dean Jackson
Comment 7 2017-03-15 11:30:44 PDT
Build Bot
Comment 8 2017-03-15 13:21:44 PDT
Comment on attachment 304519 [details] Patch Attachment 304519 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3332104 New failing tests: imported/w3c/web-platform-tests/IndexedDB/fire-success-event-exception.html
Build Bot
Comment 9 2017-03-15 13:21:46 PDT
Created attachment 304535 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Dean Jackson
Comment 10 2017-03-15 13:27:16 PDT
Dean Jackson
Comment 11 2017-03-15 14:17:05 PDT
Build Bot
Comment 12 2017-03-15 14:58:29 PDT
Comment on attachment 304536 [details] Patch Attachment 304536 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3332592 New failing tests: imported/w3c/web-platform-tests/IndexedDB/fire-success-event-exception.html
Build Bot
Comment 13 2017-03-15 14:58:39 PDT
Created attachment 304554 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Dean Jackson
Comment 14 2017-03-15 15:16:53 PDT
Dean Jackson
Comment 15 2017-03-15 15:22:26 PDT
It helps if you upload the correct patch. #protip
Dean Jackson
Comment 16 2017-03-15 15:58:47 PDT
Note You need to log in before you can comment on or make changes to this bug.