[GTK][WPE] Upload correct buffer in BitmapTextureGL::updateContents()
authormagomez@igalia.com <magomez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Mar 2018 14:30:08 +0000 (14:30 +0000)
committermagomez@igalia.com <magomez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Mar 2018 14:30:08 +0000 (14:30 +0000)
commit9a0eae62cdb2858af1582af7032b679d3cfc6db6
treeefc38b5250451ee001b1c9215208bef96cc3a5f6
parent8321e1b3521ff7b501e111ac00dc9e1c194cc704
[GTK][WPE] Upload correct buffer in BitmapTextureGL::updateContents()
https://bugs.webkit.org/show_bug.cgi?id=184004

Reviewed by Žan Doberšek.

Do not upload the original buffer. Upload the result of creating a subImage buffer
if it was required.

Covered by existent tests.

* platform/graphics/texmap/BitmapTextureGL.cpp:
(WebCore::BitmapTextureGL::updateContents):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/texmap/BitmapTextureGL.cpp