diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch) | |
tree | d49911209b132da58d838efa852daf28d516df21 /WebCore/platform/graphics/qt/GraphicsContextQt.cpp | |
parent | 87eb0cb35bad8784770ebc807e6c982432e47107 (diff) | |
download | external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2 |
Initial Contribution
Diffstat (limited to 'WebCore/platform/graphics/qt/GraphicsContextQt.cpp')
-rw-r--r-- | WebCore/platform/graphics/qt/GraphicsContextQt.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
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 <QPolygonF> #include <QPainterPath> #include <QPaintDevice> -#include <QPixmap> #include <QDebug> #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<QPainter*>(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<QPainter*>(platformContext()); - QPixmap px = *buffer->pixmap(); - if (px.isNull()) - return; - painter->drawPixmap(dstRect, px, srcRect); -} - } // vim: ts=4 sw=4 et |