summaryrefslogtreecommitdiffstats
path: root/WebCore/html/canvas/CanvasRenderingContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/canvas/CanvasRenderingContext.cpp')
-rw-r--r--WebCore/html/canvas/CanvasRenderingContext.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/WebCore/html/canvas/CanvasRenderingContext.cpp b/WebCore/html/canvas/CanvasRenderingContext.cpp
index fed8cb2..1e897d3 100644
--- a/WebCore/html/canvas/CanvasRenderingContext.cpp
+++ b/WebCore/html/canvas/CanvasRenderingContext.cpp
@@ -25,7 +25,9 @@
#include "config.h"
#include "CanvasRenderingContext.h"
-
+#if ENABLE(ACCELERATED_2D_CANVAS) || ENABLE(3D_CANVAS)
+#include "GraphicsContext3D.h"
+#endif
#include "HTMLCanvasElement.h"
namespace WebCore {
@@ -45,4 +47,13 @@ void CanvasRenderingContext::deref()
m_canvas->deref();
}
+bool CanvasRenderingContext::paintsIntoCanvasBuffer() const
+{
+#if ENABLE(ACCELERATED_2D_CANVAS) || ENABLE(3D_CANVAS)
+ if (GraphicsContext3D* context3D = graphicsContext3D())
+ return context3D->paintsIntoCanvasBuffer();
+#endif
+ return true;
+}
+
} // namespace WebCore