diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/gpu/qt/DrawingBufferQt.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/gpu/qt/DrawingBufferQt.cpp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/Source/WebCore/platform/graphics/gpu/qt/DrawingBufferQt.cpp b/Source/WebCore/platform/graphics/gpu/qt/DrawingBufferQt.cpp index 17a59a418..47cb4b95b 100644 --- a/Source/WebCore/platform/graphics/gpu/qt/DrawingBufferQt.cpp +++ b/Source/WebCore/platform/graphics/gpu/qt/DrawingBufferQt.cpp @@ -31,71 +31,12 @@ namespace WebCore { -DrawingBuffer::DrawingBuffer(GraphicsContext3D* context, - const IntSize& size, - bool multisampleExtensionSupported, - bool packedDepthStencilExtensionSupported, - PreserveDrawingBuffer preserveDrawingBuffer, - AlphaRequirement alpha) - : m_preserveDrawingBuffer(preserveDrawingBuffer) - , m_alpha(alpha) - , m_scissorEnabled(false) - , m_texture2DBinding(0) - , m_framebufferBinding(0) - , m_activeTextureUnit(GraphicsContext3D::TEXTURE0) - , m_context(context) - , m_size(-1, -1) - , m_multisampleExtensionSupported(multisampleExtensionSupported) - , m_packedDepthStencilExtensionSupported(packedDepthStencilExtensionSupported) - , m_fbo(context->createFramebuffer()) - , m_colorBuffer(0) - , m_frontColorBuffer(0) - , m_separateFrontTexture(false) - , m_depthStencilBuffer(0) - , m_depthBuffer(0) - , m_stencilBuffer(0) - , m_multisampleFBO(0) - , m_multisampleColorBuffer(0) -{ - ASSERT(m_fbo); - if (!m_fbo) { - clear(); - return; - } - - // create a texture to render into - m_colorBuffer = context->createTexture(); - context->bindTexture(GraphicsContext3D::TEXTURE_2D, m_colorBuffer); - context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MAG_FILTER, GraphicsContext3D::LINEAR); - context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MIN_FILTER, GraphicsContext3D::LINEAR); - context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_S, GraphicsContext3D::CLAMP_TO_EDGE); - context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_T, GraphicsContext3D::CLAMP_TO_EDGE); - context->bindTexture(GraphicsContext3D::TEXTURE_2D, 0); - - createSecondaryBuffers(); - reset(size); -} - -DrawingBuffer::~DrawingBuffer() -{ - clear(); -} - #if USE(ACCELERATED_COMPOSITING) PlatformLayer* DrawingBuffer::platformLayer() { return 0; } -void DrawingBuffer::prepareBackBuffer() -{ -} - -bool DrawingBuffer::requiresCopyFromBackToFrontBuffer() const -{ - return false; -} - unsigned DrawingBuffer::frontColorBuffer() const { return colorBuffer(); |