diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/ImageBuffer.h')
-rw-r--r-- | Source/WebCore/platform/graphics/ImageBuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/ImageBuffer.h b/Source/WebCore/platform/graphics/ImageBuffer.h index 7addde9d5..a30d0523c 100644 --- a/Source/WebCore/platform/graphics/ImageBuffer.h +++ b/Source/WebCore/platform/graphics/ImageBuffer.h @@ -95,7 +95,7 @@ namespace WebCore { } static PassOwnPtr<ImageBuffer> createCompatibleBuffer(const IntSize&, float resolutionScale, ColorSpace, const GraphicsContext*, bool hasAlpha); -#if PLATFORM(QT) +#if PLATFORM(QT) && ENABLE(ACCELERATED_2D_CANVAS) static PassOwnPtr<ImageBuffer> createCompatibleBuffer(const IntSize&, float resolutionScale, ColorSpace, QOpenGLContext*); #endif @@ -165,7 +165,7 @@ namespace WebCore { // This constructor will place its success into the given out-variable // so that create() knows when it should return failure. ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, RenderingMode, bool& success); -#if PLATFORM(QT) +#if PLATFORM(QT) && ENABLE(ACCELERATED_2D_CANVAS) ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, QOpenGLContext*, bool& success); #endif }; |