Title: [258312] trunk/Source/WebKit
Revision
258312
Author
[email protected]
Date
2020-03-11 21:24:58 -0700 (Wed, 11 Mar 2020)

Log Message

[GPU Process] encodeNativeImage() should pass imageSize to GraphicsContext::drawNativeImage()
https://bugs.webkit.org/show_bug.cgi?id=208936

Patch by Said Abou-Hallawa <[email protected]> on 2020-03-11
Reviewed by Myles C. Maxfield.

Passing an empty FloatSize makes drawNativeImage() draws nothing to
the ShareableBitmap

* Shared/WebCoreArgumentCoders.cpp:
(IPC::encodeNativeImage):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (258311 => 258312)


--- trunk/Source/WebKit/ChangeLog	2020-03-12 04:19:58 UTC (rev 258311)
+++ trunk/Source/WebKit/ChangeLog	2020-03-12 04:24:58 UTC (rev 258312)
@@ -1,5 +1,18 @@
 2020-03-11  Said Abou-Hallawa  <[email protected]>
 
+        [GPU Process] encodeNativeImage() should pass imageSize to GraphicsContext::drawNativeImage()
+        https://bugs.webkit.org/show_bug.cgi?id=208936
+
+        Reviewed by Myles C. Maxfield.
+
+        Passing an empty FloatSize makes drawNativeImage() draws nothing to
+        the ShareableBitmap
+
+        * Shared/WebCoreArgumentCoders.cpp:
+        (IPC::encodeNativeImage):
+
+2020-03-11  Said Abou-Hallawa  <[email protected]>
+
         RemoteImageBuffer::getImageData() has to clear its DisplayList after calling flushDrawingContext()
         https://bugs.webkit.org/show_bug.cgi?id=208931
 

Modified: trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp (258311 => 258312)


--- trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp	2020-03-12 04:19:58 UTC (rev 258311)
+++ trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp	2020-03-12 04:24:58 UTC (rev 258312)
@@ -1082,7 +1082,7 @@
     if (!graphicsContext)
         return;
 
-    graphicsContext->drawNativeImage(image, { }, FloatRect({ }, imageSize), FloatRect({ }, imageSize));
+    graphicsContext->drawNativeImage(image, imageSize, FloatRect({ }, imageSize), FloatRect({ }, imageSize));
 
     ShareableBitmap::Handle handle;
     bitmap->createHandle(handle);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to