createCairoGLSurface should take in a FloatSize reference as its first parameter
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Jun 2014 05:50:09 +0000 (05:50 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Jun 2014 05:50:09 +0000 (05:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=134159

Reviewed by Martin Robinson.

The ImageBuffer constructor operates with a FloatSize reference, which is also
passed to createCairoGLSurface when accelerated 2D canvas support is enabled.
That function should take in a reference to the same type.

* platform/graphics/cairo/ImageBufferCairo.cpp:
(WebCore::createCairoGLSurface):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170259 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp

index 3aba271..c1cc62c 100644 (file)
@@ -1,3 +1,17 @@
+2014-06-21  Zan Dobersek  <zdobersek@igalia.com>
+
+        createCairoGLSurface should take in a FloatSize reference as its first parameter
+        https://bugs.webkit.org/show_bug.cgi?id=134159
+
+        Reviewed by Martin Robinson.
+
+        The ImageBuffer constructor operates with a FloatSize reference, which is also
+        passed to createCairoGLSurface when accelerated 2D canvas support is enabled.
+        That function should take in a reference to the same type.
+
+        * platform/graphics/cairo/ImageBufferCairo.cpp:
+        (WebCore::createCairoGLSurface):
+
 2014-06-21  Dean Jackson  <dino@apple.com>
 
         [Mac] Margins for new form controls need tweaking
index fed315d..7aeacfd 100644 (file)
@@ -64,7 +64,7 @@ ImageBufferData::ImageBufferData(const IntSize& size)
 }
 
 #if ENABLE(ACCELERATED_2D_CANVAS)
-PassRefPtr<cairo_surface_t> createCairoGLSurface(const IntSize& size, uint32_t& texture)
+PassRefPtr<cairo_surface_t> createCairoGLSurface(const FloatSize& size, uint32_t& texture)
 {
     GLContext::sharingContext()->makeContextCurrent();