Bug 1794956 - TransferToImageBitmap should reset bitmap but not state. r=gfx-reviewers,lsalzman

s/Reset/ResetBitmap/ and implement for WebGL and WebGPU.

Differential Revision: https://phabricator.services.mozilla.com/D159346
This commit is contained in:
Kelsey Gilbert
2022-10-15 09:01:46 +00:00
parent c0280ccc0e
commit b3044b4370
10 changed files with 23 additions and 29 deletions

View File

@@ -962,10 +962,7 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal,
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHOD Reset() override {
/* (InitializeWithSurface) */
return NS_ERROR_NOT_IMPLEMENTED;
}
void ResetBitmap() override;
UniquePtr<uint8_t[]> GetImageBuffer(int32_t* out_format) override;
NS_IMETHOD GetInputStream(const char* mimeType,