RESOLVED FIXED 178992
Implement "bitmaprenderer" CanvasRenderingContext
https://bugs.webkit.org/show_bug.cgi?id=178992
Summary Implement "bitmaprenderer" CanvasRenderingContext
Dean Jackson
Reported 2017-10-29 14:04:04 PDT
Implement "bitmaprenderer" CanvasRenderingContext
Attachments
Patch (22.41 KB, patch)
2017-10-29 14:17 PDT, Dean Jackson
sam: review+
Dean Jackson
Comment 1 2017-10-29 14:04:36 PDT
Dean Jackson
Comment 2 2017-10-29 14:17:31 PDT
Antoine Quint
Comment 3 2017-10-29 14:25:40 PDT
Comment on attachment 325292 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=325292&action=review > Source/WebCore/html/HTMLCanvasElement.cpp:507 > +// FIXME: Needs to accept ImageBitmapRenderingContext::Settings. Might as well file a bug for this, even if you fix it soon. > Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp:55 > + // 1. If a bitmap argument was not provided, then: I'd prefer a simple link to the spec than copying the entire copy as-is which may end up being stale.
Sam Weinig
Comment 4 2017-10-29 14:33:16 PDT
Comment on attachment 325292 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=325292&action=review > Source/WebCore/html/ImageBitmap.cpp:563 > + m_detached = true; Not related to this change, but is the m_detached useful? I would think it always corresponds to whether m_bitmapData is null or not.
Dean Jackson
Comment 5 2017-10-30 11:34:07 PDT
Comment on attachment 325292 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=325292&action=review >> Source/WebCore/html/ImageBitmap.cpp:563 >> + m_detached = true; > > Not related to this change, but is the m_detached useful? I would think it always corresponds to whether m_bitmapData is null or not. It might be possible to transfer a null ImageBitmap, although I'm not sure how you'd ever create one. I think you're right though, so I'll make the change. >> Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp:55 >> + // 1. If a bitmap argument was not provided, then: > > I'd prefer a simple link to the spec than copying the entire copy as-is which may end up being stale. I prefer the specification as comments because: 1. It makes it easier to implement. 2. It makes it easier to review - you don't have to be reading the specification and linking the logic up. 3. It makes it more clear when our implementation gets out of date compared to the specification.
Dean Jackson
Comment 6 2017-10-30 12:37:56 PDT
Note You need to log in before you can comment on or make changes to this bug.