diff options
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLContextAttributes.cpp')
-rw-r--r-- | Source/WebCore/html/canvas/WebGLContextAttributes.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/html/canvas/WebGLContextAttributes.cpp b/Source/WebCore/html/canvas/WebGLContextAttributes.cpp index 6a47ea9..e36e04e 100644 --- a/Source/WebCore/html/canvas/WebGLContextAttributes.cpp +++ b/Source/WebCore/html/canvas/WebGLContextAttributes.cpp @@ -107,6 +107,16 @@ void WebGLContextAttributes::setPremultipliedAlpha(bool premultipliedAlpha) m_attrs.premultipliedAlpha = premultipliedAlpha; } +bool WebGLContextAttributes::preserveDrawingBuffer() const +{ + return m_attrs.preserveDrawingBuffer; +} + +void WebGLContextAttributes::setPreserveDrawingBuffer(bool preserveDrawingBuffer) +{ + m_attrs.preserveDrawingBuffer = preserveDrawingBuffer; +} + GraphicsContext3D::Attributes WebGLContextAttributes::attributes() const { return m_attrs; |