Home
last modified time | relevance | path

Searched refs:painter (Results 1 – 25 of 93) sorted by relevance

1234

/external/webkit/Source/WebCore/platform/qt/
DQtMobileWebStyle.cpp33 static inline void drawRectangularControlBackground(QPainter* painter, const QPen& pen, const QRect… in drawRectangularControlBackground() argument
35 QPen oldPen = painter->pen(); in drawRectangularControlBackground()
36 QBrush oldBrush = painter->brush(); in drawRectangularControlBackground()
37 painter->setRenderHint(QPainter::Antialiasing, true); in drawRectangularControlBackground()
38 painter->setPen(pen); in drawRectangularControlBackground()
39 painter->setBrush(brush); in drawRectangularControlBackground()
42 painter->drawRoundedRect(rect.adjusted(line, line, -line, -line), in drawRectangularControlBackground()
44 painter->setPen(oldPen); in drawRectangularControlBackground()
45 painter->setBrush(oldBrush); in drawRectangularControlBackground()
48 void QtMobileWebStyle::drawChecker(QPainter* painter, int size, QColor color) const in drawChecker() argument
[all …]
DRenderThemeQt.cpp133 painter = static_cast<QPainter*>(context->platformContext()); in init()
136 if (painter) in init()
137 dev = painter->device(); in init()
142 if (painter) { in init()
145 oldBrush = painter->brush(); in init()
146 painter->setBrush(Qt::NoBrush); in init()
150 oldAntialiasing = painter->testRenderHint(QPainter::Antialiasing); in init()
151 painter->setRenderHint(QPainter::Antialiasing, false); in init()
157 if (painter) { in ~StylePainter()
158 painter->setBrush(oldBrush); in ~StylePainter()
[all …]
DQtMobileWebStyle.h35 void drawChecker(QPainter* painter, int size, QColor color) const;
38 void drawRadio(QPainter* painter, const QSize& size, bool checked, QColor color) const;
42 void drawSimpleComboButton(QPainter* painter, const QSize& size, QColor color) const;
43 void drawMultipleComboButton(QPainter* painter, const QSize& size, QColor color) const;
DRenderThemeQt.h163 void paintMediaBackground(QPainter* painter, const IntRect& r) const;
202 bool isValid() const { return painter && style; } in isValid()
204 QPainter* painter; variable
209 { style->drawPrimitive(pe, &opt, painter, widget); } in drawPrimitive()
211 { style->drawControl(ce, &opt, painter, widget); } in drawControl()
213 { style->drawComplexControl(cc, &opt, painter, widget); } in drawComplexControl()
DScrollbarThemeQt.cpp151 p.painter->save(); in paint()
154 p.painter->setClipRect(opt->rect.intersected(damageRect), Qt::IntersectClip); in paint()
160 p.painter->translate(topLeft); in paint()
164 p.painter->fillRect(opt->rect, opt->palette.background()); in paint()
169 p.painter->restore(); in paint()
/external/webkit/Source/WebCore/platform/graphics/qt/
DTransparencyLayer.h56 painter.begin(&pixmap); in TransparencyLayer()
57 painter.setRenderHints(p->renderHints()); in TransparencyLayer()
58 painter.translate(-offset); in TransparencyLayer()
59 painter.setPen(p->pen()); in TransparencyLayer()
60 painter.setBrush(p->brush()); in TransparencyLayer()
61 painter.setTransform(p->transform(), true); in TransparencyLayer()
62 painter.setFont(p->font()); in TransparencyLayer()
63 painter.setOpacity(1); in TransparencyLayer()
72 QPainter painter; member
DTextureMapperQt.cpp103 QPainter* painter = m_currentSurface ? &m_currentSurface->m_painter : m_painter; in setClip() local
104 painter->setClipRect(rect); in setClip()
138 QPainter* painter = m_painter; in drawTexture() local
141 painter = &m_currentSurface->m_painter; in drawTexture()
156 const qreal prevOpacity = painter->opacity(); in drawTexture()
157 const QTransform prevTransform = painter->transform(); in drawTexture()
158 painter->setOpacity(opacity); in drawTexture()
159 painter->setTransform(matrix, true); in drawTexture()
160 painter->drawPixmap(targetRect, pixmap, textureQt.sourceRect()); in drawTexture()
161 painter->setTransform(prevTransform); in drawTexture()
[all …]
DTileQt.cpp44 QPainter painter(pixmap); in checkeredPixmap() local
50painter.fillRect(x, y, checkerSize / 2, checkerSize / 2, alternate ? color1 : color2); in checkeredPixmap()
114 QPainter painter(m_backBuffer); in updateBackBuffer() local
115 GraphicsContext context(&painter); in updateBackBuffer()
158 QPainter* painter = context->platformContext(); in paintCheckerPattern() local
159 QTransform worldTransform = painter->worldTransform(); in paintCheckerPattern()
171 painter->setWorldTransform(adjustedTransform); in paintCheckerPattern()
173 painter->drawTiledPixmap(targetViewRect, in paintCheckerPattern()
178 painter->setWorldTransform(worldTransform); in paintCheckerPattern()
DGraphicsContextQt.cpp184 return painter; in p()
185 return &layers.top()->painter; in p()
216 QPainter* painter; member in WebCore::GraphicsContextPlatformPrivate
226 , painter(p) in GraphicsContextPlatformPrivate()
229 if (!painter) in GraphicsContextPlatformPrivate()
233 if (painter->paintEngine()->type() == QPaintEngine::OpenVG) in GraphicsContextPlatformPrivate()
236 antiAliasingForRectsAndLines = painter->testRenderHint(QPainter::Antialiasing); in GraphicsContextPlatformPrivate()
239 antiAliasingForRectsAndLines = painter->testRenderHint(QPainter::Antialiasing); in GraphicsContextPlatformPrivate()
243 initialSmoothPixmapTransformHint = painter->testRenderHint(QPainter::SmoothPixmapTransform); in GraphicsContextPlatformPrivate()
245 painter->setRenderHint(QPainter::Antialiasing, true); in GraphicsContextPlatformPrivate()
[all …]
DGraphicsLayerQt.cpp75 void draw(QPainter* painter) in draw() argument
84 drawSource(painter); in draw()
94 maskPainter.setRenderHints(painter->renderHints(), true); in draw()
111 pixmapPainter.setRenderHints(painter->renderHints()); in draw()
120 painter->drawPixmap(offset, pixmap); in draw()
383 void GraphicsLayerQtImpl::drawLayerContent(QPainter* painter, const QRect& clipRect) in drawLayerContent() argument
385 painter->setClipRect(clipRect, Qt::IntersectClip); in drawLayerContent()
386 painter->setCompositionMode(QPainter::CompositionMode_SourceOver); in drawLayerContent()
387 GraphicsContext gc(painter); in drawLayerContent()
458 QPainter painter(&pixmap); in recache() local
[all …]
DImageBufferQt.cpp59 QPainter* painter = new QPainter; in ImageBufferData() local
60 m_painter.set(painter); in ImageBufferData()
62 if (!painter->begin(&m_pixmap)) in ImageBufferData()
68 QPen pen = painter->pen(); in ImageBufferData()
74 painter->setPen(pen); in ImageBufferData()
75 QBrush brush = painter->brush(); in ImageBufferData()
77 painter->setBrush(brush); in ImageBufferData()
78 painter->setCompositionMode(QPainter::CompositionMode_SourceOver); in ImageBufferData()
/external/webkit/Source/WebCore/platform/graphics/android/
DPaintTileOperation.h44 TilePainter* painter() { return m_tile->painter(); } in painter() function
55 ScaleFilter(TilePainter* painter, float scale) in ScaleFilter() argument
56 : m_painter(painter) in ScaleFilter()
62 if ((op->painter() == m_painter) && (op->scale() != m_scale)) in check()
75 TilePainterFilter(TilePainter* painter) : m_painter(painter) {} in TilePainterFilter() argument
80 if (op->painter() == m_painter) in check()
DBaseTileTexture.cpp217 float scale, TilePainter* painter, in setTile() argument
227 textureInfo->m_painter = painter; in setTile()
262 (info->m_painter == baseTile->painter()) && in readyFor()
269 baseTile->scale(), baseTile->painter(), TilesManager::instance()->invertedScreen()); in readyFor()
/external/webkit/Source/WebKit/qt/tests/benchmarks/painting/
Dtst_painting.cpp104 QPainter painter(&pixmap); in paint()
105 mainFrame->render(&painter, QRect(QPoint(0, 0), m_page->viewportSize())); in paint()
106 painter.end(); in paint()
129 QPainter painter(&pixmap); in textAreas()
130 mainFrame->render(&painter, QRect(QPoint(0, 0), mainFrame->contentsSize())); in textAreas()
131 painter.end(); in textAreas()
/external/webkit/Source/WebKit2/UIProcess/qt/
DChunkedUpdateDrawingAreaProxyQt.cpp60 bool ChunkedUpdateDrawingAreaProxy::platformPaint(const IntRect& rect, QPainter* painter) in platformPaint() argument
65 painter->drawImage(QPoint(0, 0), m_backingStoreImage); in platformPaint()
76 QPainter painter(&m_backingStoreImage); in drawUpdateChunkIntoBackingStore() local
77 painter.drawImage(updateChunkRect.location(), image); in drawUpdateChunkIntoBackingStore()
/external/webkit/Source/WebKit2/Shared/qt/
DShareableBitmapQt.cpp53 QPainter* painter = context.platformContext(); in paint() local
54 painter->translate(-srcRect.x(), -srcRect.y()); in paint()
55 painter->drawImage(dstPoint, image, QRect(srcRect)); in paint()
56 painter->translate(srcRect.x(), srcRect.y()); in paint()
/external/webkit/Source/WebKit/qt/tests/qgraphicswebview/
Dtst_qgraphicswebview.cpp215 QPainter painter(&img); in bug56929() local
217 webView->paint(&painter, &option); in bug56929()
219 webView->paint(&painter, &option); in bug56929()
221 painter.fillRect(option.exposedRect, Qt::black); in bug56929()
224 webView->paint(&painter, &option); in bug56929()
540 QPainter painter(&reference); in webglSoftwareFallbackVerticalOrientation() local
545 painter.setPen(Qt::NoPen); in webglSoftwareFallbackVerticalOrientation()
546 painter.setBrush(Qt::red); in webglSoftwareFallbackVerticalOrientation()
547 painter.drawPolygon(triangleUp); in webglSoftwareFallbackVerticalOrientation()
559 QPainter painter(&reference); in webglSoftwareFallbackHorizontalOrientation() local
[all …]
/external/webkit/Source/WebKit/qt/Api/
Dqwebframe.cpp293 QPainter* painter = context->platformContext(); in renderFromTiledBackingStore() local
304 painter->save(); in renderFromTiledBackingStore()
307 painter->setClipRect(rect, Qt::IntersectClip); in renderFromTiledBackingStore()
311 painter->restore(); in renderFromTiledBackingStore()
330 QPainter* painter = context->platformContext(); in renderCompositedLayers() local
332 painter->save(); in renderCompositedLayers()
333 painter->beginNativePainting(); in renderCompositedLayers()
338 options.opacity = painter->opacity(); in renderCompositedLayers()
340 painter->endNativePainting(); in renderCompositedLayers()
341 painter->restore(); in renderCompositedLayers()
[all …]
/external/webkit/Source/WebKit/qt/docs/webkitsnippets/webpage/
Dmain.cpp70 QPainter painter(&image); in render() local
72 page.mainFrame()->render(&painter); in render()
73 painter.end(); in render()
/external/webkit/Source/WebCore/rendering/
DRenderThemeChromiumWin.cpp428 ThemePainter painter(i.context, r); in paintButton() local
429 PlatformBridge::paintButton(painter.context(), in paintButton()
433 painter.drawRect()); in paintButton()
446 ThemePainter painter(i.context, r); in paintSliderTrack() local
447 PlatformBridge::paintTrackbar(painter.context(), in paintSliderTrack()
451 painter.drawRect()); in paintSliderTrack()
509 ThemePainter painter(i.context, rect); in paintMenuList() local
510 PlatformBridge::paintMenuList(painter.context(), in paintMenuList()
514 painter.drawRect()); in paintMenuList()
698 ThemePainter painter(i.context, r); in paintTextFieldInternal() local
[all …]
/external/webkit/Source/WebKit/qt/tests/benchmarks/webgl/
Dtst_webgl.cpp122 QPainter painter(&target); in benchmarkFrameRenderingOnImage()
123 m_view->render(&painter); in benchmarkFrameRenderingOnImage()
124 painter.end(); in benchmarkFrameRenderingOnImage()
/external/webkit/Source/WebKit2/WebProcess/WebPage/qt/
DChunkedUpdateDrawingAreaQt.cpp43 QPainter painter(&image); in paintIntoUpdateChunk() local
45 GraphicsContext graphicsContext(&painter); in paintIntoUpdateChunk()
DTiledDrawingAreaQt.cpp46 QPainter painter(&image); in paintIntoUpdateChunk() local
48 GraphicsContext graphicsContext(&painter); in paintIntoUpdateChunk()
/external/webkit/Source/WebCore/plugins/qt/
DPluginViewQt.cpp115 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) in paint() argument
118 m_view->paintUsingXPixmap(painter, option->exposedRect.toRect()); in paint()
212 void PluginView::paintUsingImageSurfaceExtension(QPainter* painter, const IntRect& exposedRect) in paintUsingImageSurfaceExtension() argument
219 QPaintDevice* surface = QPainter::redirected(painter->device(), &offset); in paintUsingImageSurfaceExtension()
272painter->drawImage(QPoint(frameRect().x() + exposedRect.x(), frameRect().y() + exposedRect.y()), m… in paintUsingImageSurfaceExtension()
276 void PluginView::paintUsingXPixmap(QPainter* painter, const QRect &exposedRect) in paintUsingXPixmap() argument
292 QPaintDevice* backingStoreDevice = QPainter::redirected(painter->device(), &offset); in paintUsingXPixmap()
311 QPainter painter(&qtDrawable); in paintUsingXPixmap() local
312 painter.fillRect(exposedRect, Qt::white); in paintUsingXPixmap()
335 painter->drawPixmap(QPoint(exposedRect.x(), exposedRect.y()), qtDrawable, exposedRect); in paintUsingXPixmap()
[all …]
/external/webkit/Source/WebCore/platform/graphics/openvg/
DSurfaceOpenVG.cpp251 void SurfaceOpenVG::setActivePainter(PainterOpenVG* painter) in setActivePainter() argument
256 ASSERT(!painter || !m_activePainter); in setActivePainter()
259 if (!painter && s_currentPainter == m_activePainter) in setActivePainter()
262 m_activePainter = painter; in setActivePainter()

1234