[Webkit-unassigned] [Bug 211274] Use LocalCurrentGraphicsContext in WebKit::convertPlatformImageToBitmap()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 3 09:40:57 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=211274
David Kilzer (:ddkilzer) <ddkilzer at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Refactor |Use
|LocalCurrentGraphicsContext |LocalCurrentGraphicsContext
|to save/restore |in
|NSGraphicsContext |WebKit::convertPlatformImag
| |eToBitmap()
--- Comment #3 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
Well, I feel silly now because it was easy to use LocalCurrentGraphicsContext in WebKit::convertPlatformImageToBitmap().
Maybe the next step is to make LocalCurrentGraphicsContext work for PLATFORM(IOS_FAMILY):
#if PLATFORM(IOS_FAMILY)
UIGraphicsPushContext(graphicsContext->platformContext());
[image drawInRect:CGRectMake(0, 0, bitmap->size().width(), bitmap->size().height())];
UIGraphicsPopContext();
#elif USE(APPKIT)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200503/8d5d2ac5/attachment-0001.htm>
More information about the webkit-unassigned
mailing list