From 9364f22aed35e1a1e9d07c121510f80be3ab0502 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 21 Oct 2008 07:00:00 -0700 Subject: Initial Contribution --- WebCore/platform/graphics/qt/GraphicsContextQt.cpp | 33 ---------------------- 1 file changed, 33 deletions(-) (limited to 'WebCore/platform/graphics/qt/GraphicsContextQt.cpp') diff --git a/WebCore/platform/graphics/qt/GraphicsContextQt.cpp b/WebCore/platform/graphics/qt/GraphicsContextQt.cpp index ec35d96..cf097c8 100644 --- a/WebCore/platform/graphics/qt/GraphicsContextQt.cpp +++ b/WebCore/platform/graphics/qt/GraphicsContextQt.cpp @@ -36,7 +36,6 @@ #include "Path.h" #include "Color.h" #include "GraphicsContext.h" -#include "ImageBuffer.h" #include "Font.h" #include "Pen.h" #include "NotImplemented.h" @@ -46,7 +45,6 @@ #include #include #include -#include #include #ifndef M_PI @@ -907,37 +905,6 @@ void GraphicsContext::setUseAntialiasing(bool enable) m_data->p()->setRenderHint(QPainter::Antialiasing, enable); } -void GraphicsContext::paintBuffer(ImageBuffer* buffer, const IntRect& r) -{ - if (paintingDisabled()) - return; - QPixmap pixmap = *buffer->pixmap(); - if (pixmap.isNull()) - return; - QPainter* painter = platformContext(); - QPen currentPen = painter->pen(); - qreal currentOpacity = painter->opacity(); - QBrush currentBrush = painter->brush(); - QBrush currentBackground = painter->background(); - if (painter->isActive()) - painter->end(); - static_cast(painter)->drawPixmap(r, pixmap); - painter->begin(&pixmap); - painter->setPen(currentPen); - painter->setBrush(currentBrush); - painter->setOpacity(currentOpacity); - painter->setBackground(currentBackground); -} - -void GraphicsContext::drawImage(ImageBuffer* buffer, const FloatRect& srcRect, const FloatRect& dstRect) -{ - QPainter* painter = static_cast(platformContext()); - QPixmap px = *buffer->pixmap(); - if (px.isNull()) - return; - painter->drawPixmap(dstRect, px, srcRect); -} - } // vim: ts=4 sw=4 et -- cgit v1.1