WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
169219
Add GPUDevice implementation and WebGPULayer
https://bugs.webkit.org/show_bug.cgi?id=169219
Summary
Add GPUDevice implementation and WebGPULayer
Dean Jackson
Reported
2017-03-06 14:28:43 PST
Foundation of the WebGPU implementation.
Attachments
Patch
(23.15 KB, patch)
2017-03-06 14:32 PST
,
Dean Jackson
no flags
Details
Formatted Diff
Diff
Patch
(23.27 KB, patch)
2017-03-07 04:09 PST
,
Dean Jackson
no flags
Details
Formatted Diff
Diff
Patch
(25.47 KB, patch)
2017-03-07 04:38 PST
,
Dean Jackson
no flags
Details
Formatted Diff
Diff
Patch
(33.88 KB, patch)
2017-03-07 13:01 PST
,
Dean Jackson
sam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-03-06 14:28:56 PST
<
rdar://problem/30879048
>
Dean Jackson
Comment 2
2017-03-06 14:32:05 PST
Created
attachment 303559
[details]
Patch
Dean Jackson
Comment 3
2017-03-06 14:32:34 PST
Not for review - just EWS. Writing API tests.
Dean Jackson
Comment 4
2017-03-07 04:09:06 PST
Created
attachment 303640
[details]
Patch
Dean Jackson
Comment 5
2017-03-07 04:38:07 PST
Created
attachment 303644
[details]
Patch
Dean Jackson
Comment 6
2017-03-07 13:01:45 PST
Created
attachment 303706
[details]
Patch
Sam Weinig
Comment 7
2017-03-07 13:26:07 PST
Comment on
attachment 303706
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=303706&action=review
> Source/WebCore/platform/graphics/cocoa/GPUDeviceMetal.mm:55 > +#ifndef NDEBUG > + [m_layer setName:@"WebGPU Layer"]; > +#endif
Do we really need to make these debug only still?
> Source/WebCore/platform/graphics/cocoa/WebGPULayer.h:33 > +#import <Metal/Metal.h> > +#import <QuartzCore/QuartzCore.h> > + > +namespace WebCore { > +class GPUDevice; > +}
This file is not guarded by #if ENABLE(WEBGPU). Should it be?
> Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm:35 > + > +#import "GPUDevice.h" > +#import "GraphicsContextCG.h" > +#import "GraphicsLayer.h" > +#import <wtf/FastMalloc.h> > +#import <wtf/RetainPtr.h> > + > +using namespace WebCore;
This file is not guarded by #if ENABLE(WEBGPU). Should it be?
> Source/WebCore/platform/graphics/gpu/GPUDevice.cpp:32 > +#import "Logging.h" > + > +#if ENABLE(WEBGPU) > +
When guarded like this, we usually put all the #includes/#imports below the main one, inside the guard.
> Tools/TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm:33 > +#include "config.h" > +#import "Test.h" > +#import <Metal/Metal.h> > +#import <WebCore/GPUDevice.h> > + > +using namespace WebCore; > + > +namespace TestWebKitAPI {
This file is not guarded by #if ENABLE(WEBGPU). Should it be?
Dean Jackson
Comment 8
2017-03-07 14:28:34 PST
Committed
r213541
: <
http://trac.webkit.org/changeset/213541
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug