Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
index 56f5a202587be96a70aedfae90386d3e85836506..58b33b4e56ad98284fcc6bd9584a97adb2bebd28 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
@@ -50,7 +50,9 @@ |
#include "public/platform/WebExternalTextureMailbox.h" |
#include "public/platform/WebGraphicsContext3D.h" |
#include "public/platform/WebGraphicsContext3DProvider.h" |
+#include "skia/ext/texture_handle.h" |
#include "third_party/skia/include/core/SkPicture.h" |
+#include "third_party/skia/include/gpu/gl/GrGLTypes.h" |
#include "wtf/ArrayBufferContents.h" |
#include "wtf/MathExtras.h" |
#include "wtf/Vector.h" |
@@ -193,7 +195,7 @@ bool ImageBuffer::copyToPlatformTexture(WebGraphicsContext3D* context, Platform3 |
ASSERT(textureImage->isTextureBacked()); // isAccelerated() check above should guarantee this |
// Get the texture ID, flushing pending operations if needed. |
- Platform3DObject textureId = textureImage->getTextureHandle(true); |
+ Platform3DObject textureId = skia::GrBackendObjectToGrGLTextureInfo(textureImage->getTextureHandle(true))->fID; |
if (!textureId) |
return false; |