X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=WebCore%2Fplatform%2Fgraphics%2Fskia%2FPlatformContextSkia.cpp;h=d610c2aa31aedf1dd41a0f107346e047d775f3a9;hb=28040489d744e0c5d475a88663056c9040ed5320;hp=620459707ba2b9fb3add30931e61380411c8154f;hpb=eff9be92c41913c92fb1d3b7983c071f3e718678;p=android-x86%2Fexternal-webkit.git diff --git a/WebCore/platform/graphics/skia/PlatformContextSkia.cpp b/WebCore/platform/graphics/skia/PlatformContextSkia.cpp index 620459707..d610c2aa3 100644 --- a/WebCore/platform/graphics/skia/PlatformContextSkia.cpp +++ b/WebCore/platform/graphics/skia/PlatformContextSkia.cpp @@ -34,6 +34,7 @@ #include "AffineTransform.h" #include "DrawingBuffer.h" +#include "Extensions3D.h" #include "GraphicsContext.h" #include "GraphicsContext3D.h" #include "ImageBuffer.h" @@ -861,7 +862,7 @@ void PlatformContextSkia::readbackHardwareToSoftware() const for (int y = 0; y < height; ++y) { uint32_t* pixels = bitmap.getAddr32(0, y); if (context->supportsBGRA()) - context->readPixels(0, height - 1 - y, width, 1, GraphicsContext3D::BGRA_EXT, GraphicsContext3D::UNSIGNED_BYTE, pixels); + context->readPixels(0, height - 1 - y, width, 1, Extensions3D::BGRA_EXT, GraphicsContext3D::UNSIGNED_BYTE, pixels); else { context->readPixels(0, height - 1 - y, width, 1, GraphicsContext3D::RGBA, GraphicsContext3D::UNSIGNED_BYTE, pixels); for (int i = 0; i < width; ++i) {