Bug 169365

Summary: WebGPU: Backend - Textures and TextureDescriptors
Product: WebKit Reporter: Dean Jackson <dino>
Component: WebGLAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 167952    
Attachments:
Description Flags
Patch jonlee: review+

Description Dean Jackson 2017-03-08 13:23:14 PST
Implement Buffers, Textures and TextureDescriptors
Comment 1 Dean Jackson 2017-03-08 13:30:34 PST
<rdar://problem/30928716>
Comment 2 Dean Jackson 2017-03-10 14:29:42 PST
Created attachment 304079 [details]
Patch
Comment 3 Anders Carlsson 2017-03-10 14:49:44 PST
Comment on attachment 304079 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=304079&action=review

> Source/WebCore/platform/graphics/cocoa/GPUTextureDescriptorMetal.mm:48
> +    if (!m_textureDescriptor)
> +        return 0;
> +    return [m_textureDescriptor width];

No need to check for nil here - messaging nil will already do the right thing. (Here and all the other getter/setters).

Unless you want to assert that there's a texture descriptor.
Comment 4 Dean Jackson 2017-03-10 14:56:42 PST
Committed r213731: <http://trac.webkit.org/changeset/213731>