Summary: | WebGPU: Backend - Textures and TextureDescriptors | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||
Component: | WebGL | Assignee: | 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
Dean Jackson
2017-03-08 13:23:14 PST
Created attachment 304079 [details]
Patch
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. Committed r213731: <http://trac.webkit.org/changeset/213731> |