Home
last modified time | relevance | path

Searched refs:graphicsContext (Results 1 – 25 of 80) sorted by relevance

1234

/external/webkit/Source/WebCore/platform/graphics/
DShadowBlur.cpp399 void ShadowBlur::drawShadowBuffer(GraphicsContext* graphicsContext) in drawShadowBuffer() argument
404 graphicsContext->save(); in drawShadowBuffer()
410 graphicsContext->clip(FloatRect(m_layerOrigin, m_layerSize)); in drawShadowBuffer()
412 graphicsContext->clipToImageBuffer(m_layerImage, FloatRect(m_layerOrigin, bufferSize)); in drawShadowBuffer()
413 graphicsContext->setFillColor(m_color, m_colorSpace); in drawShadowBuffer()
415 graphicsContext->clearShadow(); in drawShadowBuffer()
416 graphicsContext->fillRect(FloatRect(m_layerOrigin, m_sourceRect.size())); in drawShadowBuffer()
418 graphicsContext->restore(); in drawShadowBuffer()
444 void ShadowBlur::drawRectShadow(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, co… in drawRectShadow() argument
446 …IntRect layerRect = calculateLayerBoundingRect(graphicsContext, shadowedRect, graphicsContext->cli… in drawRectShadow()
[all …]
/external/webkit/Source/WebKit2/UIProcess/
DFindIndicator.cpp145 void FindIndicator::draw(GraphicsContext& graphicsContext, const IntRect& dirtyRect) in draw() argument
151 graphicsContext.save(); in draw()
153graphicsContext.setShadow(FloatSize(shadowOffsetX, shadowOffsetY), shadowBlurRadius, shadowColor()… in draw()
154 graphicsContext.setFillColor(lightBorderColor(), ColorSpaceDeviceRGB); in draw()
155 graphicsContext.fillPath(pathWithRoundedRect(outerPathRect, cornerRadius)); in draw()
156 graphicsContext.restore(); in draw()
158 graphicsContext.save(); in draw()
160 graphicsContext.clip(pathWithRoundedRect(innerPathRect, cornerRadius)); in draw()
164 graphicsContext.setFillGradient(gradient); in draw()
165 graphicsContext.fillRect(outerPathRect); in draw()
[all …]
/external/webkit/Source/WebCore/platform/graphics/win/
DFontCGWin.cpp130 static void drawGDIGlyphs(GraphicsContext* graphicsContext, const SimpleFontData* font, const Glyph… in drawGDIGlyphs() argument
133 Color fillColor = graphicsContext->fillColor(); in drawGDIGlyphs()
136 TextDrawingModeFlags drawingMode = graphicsContext->textDrawingMode(); in drawGDIGlyphs()
141 drawIntoBitmap = fillColor.alpha() != 255 || graphicsContext->inTransparencyLayer(); in drawGDIGlyphs()
148 graphicsContext->getShadow(offset, blur, color, shadowColorSpace); in drawGDIGlyphs()
165 hdc = graphicsContext->getWindowsContext(textRect, true, false); in drawGDIGlyphs()
176 bitmap.set(graphicsContext->createWindowsBitmap(textRect.size())); in drawGDIGlyphs()
240 CGContextRef cgContext = graphicsContext->platformContext(); in drawGDIGlyphs()
295 graphicsContext->drawWindowsBitmap(bitmap.get(), textRect.location()); in drawGDIGlyphs()
297 graphicsContext->releaseWindowsContext(hdc, textRect, true, false); in drawGDIGlyphs()
[all …]
DLocalWindowsContext.h37 …LocalWindowsContext(GraphicsContext* graphicsContext, const IntRect& rect, bool supportAlphaBlend …
38 : m_graphicsContext(graphicsContext) in m_graphicsContext() argument
/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/
Dnon-kerned-drawing.cpp44 void drawTextWithSpacing(GraphicsContext* graphicsContext, const SimpleFontData* font, const wxColo… in drawTextWithSpacing() argument
46 graphicsContext->save(); in drawTextWithSpacing()
48 wxGCDC* dc = static_cast<wxGCDC*>(graphicsContext->platformContext()); in drawTextWithSpacing()
51 graphicsContext->setFillColor(graphicsContext->fillColor(), ColorSpaceDeviceRGB); in drawTextWithSpacing()
62 graphicsContext->fillColor().getRGBA(red, green, blue, alpha); in drawTextWithSpacing()
77 graphicsContext->restore(); in drawTextWithSpacing()
/external/webkit/Source/WebCore/rendering/
DRenderBoxModelObject.cpp925 bool RenderBoxModelObject::paintNinePieceImage(GraphicsContext* graphicsContext, int tx, int ty, in… in paintNinePieceImage() argument
976graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx, ty, leftWidth, topWidth), in paintNinePieceImage()
982graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx, ty + h - bottomWidth, leftWidth, b… in paintNinePieceImage()
987graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx, ty + topWidth, leftWidth, in paintNinePieceImage()
998graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx + w - rightWidth, ty, rightWidth, t… in paintNinePieceImage()
1004graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx + w - rightWidth, ty + h - bottomWi… in paintNinePieceImage()
1008graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + w - rightWidth, ty + topWidt… in paintNinePieceImage()
1016graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + leftWidth, ty, w - leftWidth… in paintNinePieceImage()
1022graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + leftWidth, ty + h - bottomWi… in paintNinePieceImage()
1029graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + leftWidth, ty + topWidth, w … in paintNinePieceImage()
[all …]
DRenderObject.cpp709 void RenderObject::drawLineForBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int… in drawLineForBoxSide() argument
724 graphicsContext->setStrokeColor(color, m_style->colorSpace()); in drawLineForBoxSide()
725 graphicsContext->setStrokeThickness(width); in drawLineForBoxSide()
726 graphicsContext->setStrokeStyle(style == DASHED ? DashedStroke : DottedStroke); in drawLineForBoxSide()
729 bool wasAntialiased = graphicsContext->shouldAntialias(); in drawLineForBoxSide()
730 graphicsContext->setShouldAntialias(antialias); in drawLineForBoxSide()
735graphicsContext->drawLine(IntPoint(x1, (y1 + y2) / 2), IntPoint(x2, (y1 + y2) / 2)); in drawLineForBoxSide()
739graphicsContext->drawLine(IntPoint((x1 + x2) / 2, y1), IntPoint((x1 + x2) / 2, y2)); in drawLineForBoxSide()
742 graphicsContext->setShouldAntialias(wasAntialiased); in drawLineForBoxSide()
749 graphicsContext->setStrokeStyle(NoStroke); in drawLineForBoxSide()
[all …]
DRenderFieldset.cpp164 GraphicsContext* graphicsContext = paintInfo.context; in paintBoxDecorations() local
165 graphicsContext->save(); in paintBoxDecorations()
173 graphicsContext->clipOut(IntRect(tx + legend->x(), clipTop, legend->width(), clipHeight)); in paintBoxDecorations()
177 graphicsContext->clipOut(IntRect(clipLeft, ty + legend->y(), clipWidth, legend->height())); in paintBoxDecorations()
182 graphicsContext->restore(); in paintBoxDecorations()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DFontChromiumWin.cpp377 static void drawGlyphsWin(GraphicsContext* graphicsContext, in drawGlyphsWin() argument
383 graphicsContext->platformContext()->prepareForSoftwareDraw(); in drawGlyphsWin()
385 … TransparencyAwareGlyphPainter painter(graphicsContext, font, glyphBuffer, from, numGlyphs, point); in drawGlyphsWin()
445 void Font::drawGlyphs(GraphicsContext* graphicsContext, in drawGlyphs() argument
452 SkColor color = graphicsContext->platformContext()->effectiveFillColor(); in drawGlyphs()
455 …if (!alpha && graphicsContext->platformContext()->getStrokeStyle() == NoStroke && !graphicsContext in drawGlyphs()
458 drawGlyphsWin(graphicsContext, font, glyphBuffer, from, numGlyphs, point); in drawGlyphs()
480 void Font::drawComplexText(GraphicsContext* graphicsContext, in drawComplexText() argument
486 PlatformGraphicsContext* context = graphicsContext->platformContext(); in drawComplexText()
489 SkColor color = graphicsContext->platformContext()->effectiveFillColor(); in drawComplexText()
[all …]
/external/webkit/Source/WebKit2/WebProcess/WebPage/
DPageOverlay.cpp100 void PageOverlay::drawRect(GraphicsContext& graphicsContext, const IntRect& dirtyRect) in drawRect() argument
107 graphicsContext.save(); in drawRect()
108 graphicsContext.beginTransparencyLayer(1); in drawRect()
109 graphicsContext.setCompositeOperation(CompositeCopy); in drawRect()
111 m_client->drawRect(this, graphicsContext, paintRect); in drawRect()
113 graphicsContext.endTransparencyLayer(); in drawRect()
114 graphicsContext.restore(); in drawRect()
DFindController.cpp183 … OwnPtr<GraphicsContext> graphicsContext = findIndicatorTextBackingStore->createGraphicsContext(); in updateFindIndicator() local
189 graphicsContext->translate(-paintRect.x(), -paintRect.y()); in updateFindIndicator()
193 selectedFrame->view()->paint(graphicsContext.get(), paintRect); in updateFindIndicator()
293 void FindController::drawRect(PageOverlay* pageOverlay, GraphicsContext& graphicsContext, const Int… in drawRect() argument
300 graphicsContext.fillRect(dirtyRect, overlayBackgroundColor(fractionFadedIn), ColorSpaceSRGB); in drawRect()
302 graphicsContext.save(); in drawRect()
303graphicsContext.setShadow(FloatSize(shadowOffsetX, shadowOffsetY), shadowBlurRadius, holeShadowCol… in drawRect()
305 graphicsContext.setFillColor(holeFillColor(fractionFadedIn), ColorSpaceSRGB); in drawRect()
312 graphicsContext.fillRect(whiteFrameRect); in drawRect()
315 graphicsContext.restore(); in drawRect()
[all …]
/external/webkit/Source/WebCore/page/
DPrintContext.cpp328 void PrintContext::spoolAllPagesWithBoundaries(Frame* frame, GraphicsContext& graphicsContext, cons… in spoolAllPagesWithBoundaries() argument
346 graphicsContext.setFillColor(Color(255, 255, 255), ColorSpaceDeviceRGB); in spoolAllPagesWithBoundaries()
347 graphicsContext.fillRect(FloatRect(0, 0, pageWidth, totalHeight)); in spoolAllPagesWithBoundaries()
349 graphicsContext.save(); in spoolAllPagesWithBoundaries()
350 graphicsContext.translate(0, totalHeight); in spoolAllPagesWithBoundaries()
351 graphicsContext.scale(FloatSize(1, -1)); in spoolAllPagesWithBoundaries()
357 graphicsContext.save(); in spoolAllPagesWithBoundaries()
358 graphicsContext.setStrokeColor(Color(0, 0, 255), ColorSpaceDeviceRGB); in spoolAllPagesWithBoundaries()
359 graphicsContext.setFillColor(Color(0, 0, 255), ColorSpaceDeviceRGB); in spoolAllPagesWithBoundaries()
360 graphicsContext.drawLine(IntPoint(0, currentHeight), in spoolAllPagesWithBoundaries()
[all …]
/external/webkit/Source/WebKit2/WebProcess/WebPage/qt/
DTiledDrawingAreaQt.cpp48 GraphicsContext graphicsContext(&painter); in paintIntoUpdateChunk() local
49 graphicsContext.translate(-tileRect.x(), -tileRect.y()); in paintIntoUpdateChunk()
50 graphicsContext.scale(FloatSize(scale, scale)); in paintIntoUpdateChunk()
55 m_webPage->drawRect(graphicsContext, contentRect); in paintIntoUpdateChunk()
DChunkedUpdateDrawingAreaQt.cpp45 GraphicsContext graphicsContext(&painter); in paintIntoUpdateChunk() local
46 graphicsContext.translate(-updateChunk->rect().x(), -updateChunk->rect().y()); in paintIntoUpdateChunk()
48 m_webPage->drawRect(graphicsContext, updateChunk->rect()); in paintIntoUpdateChunk()
/external/webkit/Source/WebCore/platform/
DScrollbarThemeComposite.cpp58 bool ScrollbarThemeComposite::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const I… in paint() argument
115 if (page->chrome()->client()->paintCustomScrollbar(graphicsContext, in paint()
130 paintScrollbarBackground(graphicsContext, scrollbar); in paint()
134 paintButton(graphicsContext, scrollbar, backButtonStartPaintRect, BackButtonStartPart); in paint()
136 paintButton(graphicsContext, scrollbar, backButtonEndPaintRect, BackButtonEndPart); in paint()
138 … paintButton(graphicsContext, scrollbar, forwardButtonStartPaintRect, ForwardButtonStartPart); in paint()
140 paintButton(graphicsContext, scrollbar, forwardButtonEndPaintRect, ForwardButtonEndPart); in paint()
143 paintTrackBackground(graphicsContext, scrollbar, trackPaintRect); in paint()
148 paintTrackPiece(graphicsContext, scrollbar, startTrackRect, BackTrackPart); in paint()
150 paintTrackPiece(graphicsContext, scrollbar, endTrackRect, ForwardTrackPart); in paint()
[all …]
/external/webkit/Source/WebCore/platform/mac/
DLocalCurrentGraphicsContext.mm28 LocalCurrentGraphicsContext::LocalCurrentGraphicsContext(GraphicsContext* graphicsContext)
30 m_savedGraphicsContext = graphicsContext;
31 graphicsContext->save();
33 if (graphicsContext->platformContext() == [[NSGraphicsContext currentContext] graphicsPort]) {
39 …ext* newContext = [NSGraphicsContext graphicsContextWithGraphicsPort:graphicsContext->platformCont…
/external/webkit/Source/WebKit2/Shared/
DWebGraphicsContext.cpp37 WebGraphicsContext::WebGraphicsContext(GraphicsContext* graphicsContext) in WebGraphicsContext() argument
39 : m_platformContext(graphicsContext->platformContext()) in WebGraphicsContext()
41 : m_platformContext(graphicsContext->platformContext()->cr()) in WebGraphicsContext()
/external/webkit/Source/WebCore/platform/graphics/cairo/
DFontCairo.cpp68 static void drawGlyphsShadow(GraphicsContext* graphicsContext, const FloatPoint& point, const Simpl… in drawGlyphsShadow() argument
70 ContextShadow* shadow = graphicsContext->contextShadow(); in drawGlyphsShadow()
73 …if (!(graphicsContext->textDrawingMode() & TextModeFill) || shadow->m_type == ContextShadow::NoSha… in drawGlyphsShadow()
76 if (!shadow->mustUseContextShadow(graphicsContext)) { in drawGlyphsShadow()
78 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow()
91 cairo_t* shadowContext = shadow->beginShadowLayer(graphicsContext, fontExtentsRect); in drawGlyphsShadow()
95 shadow->endShadowLayer(graphicsContext); in drawGlyphsShadow()
/external/webkit/Source/WebCore/platform/gtk/
DScrollbarThemeGtk.cpp185 bool ScrollbarThemeGtk::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const IntRect… in paint() argument
187 if (graphicsContext->paintingDisabled()) in paint()
234 paintScrollbarBackground(graphicsContext, scrollbar); in paint()
235 paintTrackBackground(graphicsContext, scrollbar, trackPaintRect); in paint()
239 paintButton(graphicsContext, scrollbar, backButtonStartPaintRect, BackButtonStartPart); in paint()
241 paintButton(graphicsContext, scrollbar, backButtonEndPaintRect, BackButtonEndPart); in paint()
243 … paintButton(graphicsContext, scrollbar, forwardButtonStartPaintRect, ForwardButtonStartPart); in paint()
245 paintButton(graphicsContext, scrollbar, forwardButtonEndPaintRect, ForwardButtonEndPart); in paint()
249 paintThumb(graphicsContext, scrollbar, currentThumbRect); in paint()
/external/webkit/Source/WebCore/platform/graphics/haiku/
DFontHaiku.cpp73 void Font::drawGlyphs(GraphicsContext* graphicsContext, const SimpleFontData* font, in drawGlyphs() argument
76 Color color = graphicsContext->fillColor(); in drawGlyphs()
77 BView* view = graphicsContext->platformContext(); in drawGlyphs()
80 graphicsContext->setCompositeOperation(CompositeSourceOver); in drawGlyphs()
/external/webkit/Source/WebKit2/WebProcess/WebPage/mac/
DChunkedUpdateDrawingAreaMac.cpp55 GraphicsContext graphicsContext(bitmapContext.get()); in paintIntoUpdateChunk() local
56 graphicsContext.translate(-updateChunk->rect().x(), -updateChunk->rect().y()); in paintIntoUpdateChunk()
58 m_webPage->drawRect(graphicsContext, updateChunk->rect()); in paintIntoUpdateChunk()
/external/webkit/Source/WebCore/platform/win/
DScrollbarThemeSafari.cpp206 void ScrollbarThemeSafari::paintTrackBackground(GraphicsContext* graphicsContext, Scrollbar* scroll… in paintTrackBackground() argument
216 …tation() == VerticalScrollbar ? VScrollTrackPart : HScrollTrackPart, graphicsContext->platformCont… in paintTrackBackground()
219 void ScrollbarThemeSafari::paintButton(GraphicsContext* graphicsContext, Scrollbar* scrollbar, cons… in paintButton() argument
232 …on() == VerticalScrollbar ? ScrollUpArrowPart : ScrollLeftArrowPart, graphicsContext->platformCont… in paintButton()
235 …) == VerticalScrollbar ? ScrollDownArrowPart : ScrollRightArrowPart, graphicsContext->platformCont… in paintButton()
239 void ScrollbarThemeSafari::paintThumb(GraphicsContext* graphicsContext, Scrollbar* scrollbar, const… in paintThumb() argument
251 …tation() == VerticalScrollbar ? VScrollThumbPart : HScrollThumbPart, graphicsContext->platformCont… in paintThumb()
/external/webkit/Source/WebCore/platform/graphics/gtk/
DFontGtk.cpp221 static void drawGlyphsShadow(GraphicsContext* graphicsContext, const FloatPoint& point, PangoLayout… in drawGlyphsShadow() argument
223 ContextShadow* shadow = graphicsContext->contextShadow(); in drawGlyphsShadow()
226 …if (!(graphicsContext->textDrawingMode() & TextModeFill) || shadow->m_type == ContextShadow::NoSha… in drawGlyphsShadow()
232 if (!shadow->mustUseContextShadow(graphicsContext)) { in drawGlyphsShadow()
233 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow()
248 cairo_t* shadowContext = shadow->beginShadowLayer(graphicsContext, extents); in drawGlyphsShadow()
257 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow()
264 shadow->endShadowLayer(graphicsContext); in drawGlyphsShadow()
/external/webkit/Source/WebKit2/WebProcess/Plugins/
DPluginProxy.cpp125 void PluginProxy::paint(GraphicsContext* graphicsContext, const IntRect& dirtyRect) in paint() argument
134 OwnPtr<WebCore::GraphicsContext> graphicsContext = m_backingStore->createGraphicsContext(); in paint() local
135 graphicsContext->setCompositeOperation(CompositeCopy); in paint()
137 …m_pluginBackingStore->paint(*graphicsContext, IntPoint(), IntRect(0, 0, m_frameRect.width(), m_fra… in paint()
145 m_backingStore->paint(*graphicsContext, dirtyRect.location(), dirtyRectInPluginCoordinates); in paint()
470 OwnPtr<GraphicsContext> graphicsContext = m_backingStore->createGraphicsContext(); in update() local
471 graphicsContext->setCompositeOperation(CompositeCopy); in update()
472 m_pluginBackingStore->paint(*graphicsContext, paintedRectPluginCoordinates.location(), in update()
/external/webkit/Source/WebCore/platform/wx/wxcode/win/
Dnon-kerned-drawing.cpp72 void drawTextWithSpacing(GraphicsContext* graphicsContext, const SimpleFontData* font, const wxColo… in drawTextWithSpacing() argument
75 wxGCDC* dc = static_cast<wxGCDC*>(graphicsContext->platformContext()); in drawTextWithSpacing()
77 wxDC* dc = graphicsContext->platformContext(); in drawTextWithSpacing()

1234