/external/webkit/Source/WebCore/platform/graphics/skia/ |
D | GraphicsContextSkia.cpp | 226 setPaintingDisabled(!gc || !platformContext()->canvas()); in platformInit() 234 PlatformGraphicsContext* GraphicsContext::platformContext() const in platformContext() function in WebCore::GraphicsContext 247 if (platformContext()->useGPU()) in savePlatformState() 248 platformContext()->gpuCanvas()->save(); in savePlatformState() 251 platformContext()->save(); in savePlatformState() 259 if (platformContext()->useGPU()) in restorePlatformState() 260 platformContext()->gpuCanvas()->restore(); in restorePlatformState() 263 platformContext()->restore(); in restorePlatformState() 275 platformContext()->canvas()->saveLayerAlpha( in beginTransparencyLayer() 286 platformContext()->canvas()->restore(); in endTransparencyLayer() [all …]
|
D | ImageSkia.cpp | 70 static ResamplingMode computeResamplingMode(PlatformContextSkia* platformContext, const NativeImage… in computeResamplingMode() argument 72 if (platformContext->hasImageResamplingHint()) { in computeResamplingMode() 75 platformContext->getImageResamplingHint(&srcSize, &dstSize); in computeResamplingMode() 148 if (platformContext->interpolationQuality() == InterpolationHigh in computeResamplingMode() 149 …&& !(platformContext->canvas()->getTotalMatrix().getType() & (SkMatrix::kAffine_Mask | SkMatrix::k… in computeResamplingMode() 259 static void paintSkBitmap(PlatformContextSkia* platformContext, const NativeImageSkia& bitmap, cons… in paintSkBitmap() argument 264 paint.setAlpha(platformContext->getNormalizedAlpha()); in paintSkBitmap() 265 paint.setLooper(platformContext->getDrawLooper()); in paintSkBitmap() 267 SkCanvas* canvas = platformContext->canvas(); in paintSkBitmap() 273 resampling = platformContext->printing() ? RESAMPLE_NONE : in paintSkBitmap() [all …]
|
D | SkiaFontWin.cpp | 260 if (context->platformContext()->getTextDrawingMode() != TextModeFill) in windowsCanHandleTextDrawingWithoutShadow() 271 if (!context->platformContext()->isNativeFontRenderingAllowed()) in windowsCanHandleTextDrawingWithoutShadow() 281 PlatformContextSkia* platformContext, in skiaDrawText() argument 289 SkCanvas* canvas = platformContext->canvas(); in skiaDrawText() 290 if (!platformContext->isNativeFontRenderingAllowed()) { in skiaDrawText() 360 PlatformContextSkia* platformContext = context->platformContext(); in paintSkiaText() local 361 TextDrawingModeFlags textMode = platformContext->getTextDrawingMode(); in paintSkiaText() 365 platformContext->setupPaintForFilling(&paint); in paintSkiaText() 367 if (!platformContext->isNativeFontRenderingAllowed()) { in paintSkiaText() 374 if (!skiaDrawText(hfont, dc, platformContext, *origin, &paint, in paintSkiaText() [all …]
|
D | ImageBufferSkia.cpp | 78 m_context->platformContext()->setDrawingToImageBuffer(true); in ImageBuffer() 108 m_context->platformContext()->syncSoftwareCanvas(); in copyImage() 114 context->platformContext()->beginLayerClippedToImage(rect, this); in clip() 120 if (m_data.m_platformContext.useGPU() && context->platformContext()->useGPU()) { in draw() 121 if (context->platformContext()->canAccelerate()) { in draw() 129 context->platformContext()->prepareForHardwareDraw(); in draw() 130 …context->platformContext()->gpuCanvas()->drawTexturedRect(sourceTexture, m_size, srcRectFlipped, d… in draw() 149 const SkBitmap& bitmap = *context()->platformContext()->bitmap(); in platformTransformColorSpace() 259 context()->platformContext()->syncSoftwareCanvas(); in getUnmultipliedImageData() 260 …return getImageData<Unmultiplied>(rect, *context()->platformContext()->canvas()->getDevice(), m_si… in getUnmultipliedImageData() [all …]
|
D | GraphicsContextPlatformPrivate.h | 43 GraphicsContextPlatformPrivate(PlatformContextSkia* platformContext) in GraphicsContextPlatformPrivate() argument 44 : m_context(platformContext) { } in GraphicsContextPlatformPrivate()
|
/external/webkit/Source/WebCore/platform/graphics/android/context/ |
D | GraphicsContextAndroid.cpp | 58 GraphicsContextPlatformPrivate(PlatformGraphicsContext* platformContext) in GraphicsContextPlatformPrivate() argument 59 : m_context(platformContext) { } in GraphicsContextPlatformPrivate() 79 PlatformGraphicsContext* pgc = gc->platformContext(); in syncPlatformContext() 135 platformContext()->save(); in savePlatformState() 142 platformContext()->restore(); in restorePlatformState() 162 platformContext()->drawRect(rect); in drawRect() 172 platformContext()->drawLine(point1, point2); in drawLine() 181 platformContext()->drawLineForText(pt, width); in drawLineForText() 191 platformContext()->drawLineForTextChecking(pt, width, style); in drawLineForTextChecking() 201 platformContext()->drawEllipse(rect); in drawEllipse() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
D | GraphicsContextCG.cpp | 131 CGContextRef GraphicsContext::platformContext() const in platformContext() function in WebCore::GraphicsContext 142 CGContextSaveGState(platformContext()); in savePlatformState() 150 CGContextRestoreGState(platformContext()); in restorePlatformState() 163 CGContextRef context = platformContext(); in drawRect() 238 CGContextRef context = platformContext(); in drawLine() 319 CGContextRef context = platformContext(); in strokeArc() 420 CGContextRef context = platformContext(); in drawConvexPolygon() 441 CGContextRef context = platformContext(); in clipConvexPolygon() 456 CGContextRef cgContext = platformContext(); in applyStrokePattern() 471 CGContextRef cgContext = platformContext(); in applyFillPattern() [all …]
|
D | PDFDocumentImage.cpp | 113 …CGContextTranslateCTM(context->platformContext(), floorf(-min(zero, min(rx.x, ry.x))), floorf(-min… in adjustCTM() 116 CGContextRotateCTM(context->platformContext(), -m_rotation); in adjustCTM() 119 …CGContextTranslateCTM(context->platformContext(), m_mediaBox.x() - m_cropBox.x(), m_mediaBox.y() -… in adjustCTM() 171 …CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() … in draw() 172 CGContextScaleCTM(context->platformContext(), hScale, vScale); in draw() 173 CGContextScaleCTM(context->platformContext(), 1, -1); in draw() 174 CGContextTranslateCTM(context->platformContext(), 0, -srcRect.height()); in draw() 175 CGContextClipToRect(context->platformContext(), CGRectIntegral(srcRect)); in draw() 180 CGContextTranslateCTM(context->platformContext(), -m_mediaBox.x(), -m_mediaBox.y()); in draw() 181 …CGContextDrawPDFPage(context->platformContext(), CGPDFDocumentGetPage(m_document, m_currentPage + … in draw()
|
D | ImageBufferCG.cpp | 186 ctxImage = CGBitmapContextCreateImage(context()->platformContext()); in copyImage() 189 ctxImage = wkIOSurfaceContextCreateImage(context()->platformContext()); in copyImage() 239 CGContextRef platformContextToClip = contextToClip->platformContext(); in clip() 245 image.adoptCF(wkIOSurfaceContextCreateImage(context()->platformContext())); in clip() 257 CGContextFlush(context()->platformContext()); in getUnmultipliedImageData() 264 CGContextFlush(context()->platformContext()); in getPremultipliedImageData() 271 CGContextFlush(context()->platformContext()); in putUnmultipliedImageData() 278 CGContextFlush(context()->platformContext()); in putPremultipliedImageData() 352 image.adoptCF(CGBitmapContextCreateImage(context()->platformContext())); in toDataURL() 355 image.adoptCF(wkIOSurfaceContextCreateImage(context()->platformContext())); in toDataURL()
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
D | GraphicsContextCairo.cpp | 152 cairo_t* cairoContext = context->platformContext()->cr(); in drawPathShadow() 209 void GraphicsContext::platformInit(PlatformContextCairo* platformContext) in platformInit() argument 211 m_data = new GraphicsContextPlatformPrivate(platformContext); in platformInit() 212 if (platformContext) in platformInit() 213 m_data->syncContext(platformContext->cr()); in platformInit() 225 cairo_t* cr = platformContext()->cr(); in getCTM() 231 PlatformContextCairo* GraphicsContext::platformContext() const in platformContext() function in WebCore::GraphicsContext 233 return m_data->platformContext; in platformContext() 238 platformContext()->save(); in savePlatformState() 252 platformContext()->restore(); in restorePlatformState() [all …]
|
D | GraphicsContextPlatformPrivateCairo.h | 53 : platformContext(newPlatformContext) in GraphicsContextPlatformPrivate() 101 PlatformContextCairo* platformContext; variable 120 GraphicsContextPlatformPrivateToplevel(PlatformContextCairo* platformContext) in GraphicsContextPlatformPrivateToplevel() argument 121 : GraphicsContextPlatformPrivate(platformContext) in GraphicsContextPlatformPrivateToplevel() 127 delete platformContext; in ~GraphicsContextPlatformPrivateToplevel() local
|
D | FontCairo.cpp | 78 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow() 111 PlatformContextCairo* platformContext = context->platformContext(); in drawGlyphs() local 114 cairo_t* cr = platformContext->cr(); in drawGlyphs()
|
/external/webkit/Source/WebCore/rendering/ |
D | RenderMediaControls.cpp | 112 …UIPart(WKMediaUIPartFullscreenButton, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 118 …KMediaUIPartShowClosedCaptionsButton, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 125 …teButton : WKMediaUIPartUnMuteButton, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 132 …layButton : WKMediaUIPartPauseButton, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 136 …ediaUIPart(WKMediaUIPartRewindButton, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 139 …iaUIPart(WKMediaUIPartSeekBackButton, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 142 …IPart(WKMediaUIPartSeekForwardButton, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 147 …wkDrawMediaSliderTrack(themeStyle, paintInfo.context->platformContext(), unzoomedRect, mediaElemen… in paintMediaControlsPart() 152 …art(WKMediaUIPartTimelineSliderThumb, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() 155 …t(WKMediaUIPartVolumeSliderContainer, themeStyle, paintInfo.context->platformContext(), r, determi… in paintMediaControlsPart() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
D | FontLinux.cpp | 113 gc->platformContext()->prepareForSoftwareDraw(); in drawGlyphs() 115 SkCanvas* canvas = gc->platformContext()->canvas(); in drawGlyphs() 116 TextDrawingModeFlags textMode = gc->platformContext()->getTextDrawingMode(); in drawGlyphs() 121 gc->platformContext()->setupPaintForFilling(&paint); in drawGlyphs() 123 adjustTextRenderMode(&paint, gc->platformContext()); in drawGlyphs() 140 && gc->platformContext()->getStrokeStyle() != NoStroke in drawGlyphs() 141 && gc->platformContext()->getStrokeThickness() > 0) { in drawGlyphs() 144 gc->platformContext()->setupPaintForStroking(&paint, 0, 0); in drawGlyphs() 146 adjustTextRenderMode(&paint, gc->platformContext()); in drawGlyphs() 189 SkCanvas* canvas = gc->platformContext()->canvas(); in drawComplexText() [all …]
|
D | FontChromiumWin.cpp | 100 , m_platformContext(context->platformContext()) in TransparencyAwareFontPainter() 167 if (m_transparency.platformContext()) { in initializeForGDI() 168 m_hdc = skia::BeginPlatformPaint(m_transparency.platformContext()->canvas()); in initializeForGDI() 383 graphicsContext->platformContext()->prepareForSoftwareDraw(); in drawGlyphsWin() 452 SkColor color = graphicsContext->platformContext()->effectiveFillColor(); in drawGlyphs() 455 …if (!alpha && graphicsContext->platformContext()->getStrokeStyle() == NoStroke && !graphicsContext… in drawGlyphs() 486 PlatformGraphicsContext* context = graphicsContext->platformContext(); in drawComplexText() 489 SkColor color = graphicsContext->platformContext()->effectiveFillColor(); in drawComplexText() 492 if (!alpha && graphicsContext->platformContext()->getStrokeStyle() == NoStroke) in drawComplexText()
|
D | TransparencyWin.h | 148 …PlatformGraphicsContext* platformContext() const { return m_drawContext ? m_drawContext->platformC… in platformContext() function
|
/external/webkit/Source/WebCore/platform/gtk/ |
D | ScrollbarThemeGtk3.cpp | 81 gtk_render_background(m_context, context->platformContext()->cr(), in paintTrackBackground() 83 gtk_render_frame(m_context, context->platformContext()->cr(), in paintTrackBackground() 95 …gtk_render_frame(m_context, context->platformContext()->cr(), scrollbar->x(), scrollbar->y(), scro… in paintScrollbarBackground() 114 …gtk_render_slider(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), r… in paintThumb() 140 …gtk_render_background(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(… in paintButton() 141 …gtk_render_frame(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), re… in paintButton() 166 …gtk_render_arrow(m_context, context->platformContext()->cr(), angle, arrowPoint.x(), arrowPoint.y(… in paintButton()
|
D | RenderThemeGtk3.cpp | 220 …gtk_render_check(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.wid… in paintToggle() 222 …gtk_render_option(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.wi… in paintToggle() 229 …gtk_render_focus(context, paintInfo.context->platformContext()->cr(), indicatorRect.x(), indicator… in paintToggle() 288 …gtk_render_background(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonR… in renderButton() 289 …gtk_render_frame(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonRect.y… in renderButton() 321 …gtk_render_focus(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonRect.y… in renderButton() 427 cairo_t* cairoContext = paintInfo.context->platformContext()->cr(); in paintMenuList() 572 …gtk_render_background(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rec… in paintTextField() 573 …gtk_render_frame(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.wid… in paintTextField() 586 gtk_render_focus(context, paintInfo.context->platformContext()->cr(), in paintTextField() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
D | ImageHaiku.cpp | 116 ctxt->platformContext()->SetDrawingMode(B_OP_ALPHA); in draw() 117 ctxt->platformContext()->DrawBitmapAsync(image, srcRect, dstRect); in draw() 149 context->platformContext()->SetDrawingMode(B_OP_ALPHA); in drawPattern() 151 context->platformContext()->SetDrawingMode(B_OP_COPY); in drawPattern() 159 context->platformContext()->DrawBitmapAsync(image, bTileRect, bDstRect); in drawPattern()
|
/external/webkit/Source/WebCore/html/canvas/ |
D | CanvasStyle.cpp | 242 …CGContextSetCMYKStrokeColor(context->platformContext(), m_cmyka.c, m_cmyka.m, m_cmyka.y, m_cmyka.k… in applyStrokeColor() 244 QPen currentPen = context->platformContext()->pen(); in applyStrokeColor() 248 context->platformContext()->setPen(currentPen); in applyStrokeColor() 279 …CGContextSetCMYKFillColor(context->platformContext(), m_cmyka.c, m_cmyka.m, m_cmyka.y, m_cmyka.k, … in applyFillColor() 281 QBrush currentBrush = context->platformContext()->brush(); in applyFillColor() 285 context->platformContext()->setBrush(currentBrush); in applyFillColor()
|
/external/webkit/Source/WebKit2/Shared/ |
D | WebGraphicsContext.cpp | 39 : m_platformContext(graphicsContext->platformContext()) in WebGraphicsContext() 41 : m_platformContext(graphicsContext->platformContext()->cr()) in WebGraphicsContext()
|
D | WebGraphicsContext.h | 51 CGContextRef platformContext() { return m_platformContext.get(); } in platformContext() function 53 cairo_t* platformContext() { return m_platformContext.get(); } in platformContext() function
|
/external/webkit/Source/WebCore/platform/android/ |
D | RenderThemeAndroid.cpp | 381 …paintInfo.context->platformContext()->drawMediaButton(rect, RenderSkinMediaButton::FULLSCREEN, tra… in paintMediaFullscreenButton() 390 …paintInfo.context->platformContext()->drawMediaButton(rect, RenderSkinMediaButton::MUTE, transluce… in paintMediaMuteButton() 401 …paintInfo.context->platformContext()->drawMediaButton(rect, RenderSkinMediaButton::PLAY, transluce… in paintMediaPlayButton() 403 …paintInfo.context->platformContext()->drawMediaButton(rect, RenderSkinMediaButton::PAUSE, transluc… in paintMediaPlayButton() 414 …paintInfo.context->platformContext()->drawMediaButton(rect, RenderSkinMediaButton::REWIND, translu… in paintMediaSeekBackButton() 423 …paintInfo.context->platformContext()->drawMediaButton(rect, RenderSkinMediaButton::FORWARD, transl… in paintMediaSeekForwardButton() 432 paintInfo.context->platformContext()->drawMediaButton(rect, in paintMediaControlsBackground() 446 paintInfo.context->platformContext()->drawMediaButton(rect, in paintMediaSliderTrack() 456 paintInfo.context->platformContext()->drawMediaButton(rect, in paintMediaSliderThumb() 694 i.context->platformContext()->drawMediaButton(r, in paintSliderTrack() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
D | GraphicsContextCairoWin.cpp | 83 if (platformContext()->cr()) { in platformInit() 146 …drawBitmapToContext(m_data, platformContext()->cr(), pixelData, IntSize(dstRect.x(), dstRect.heigh… in releaseWindowsContext() 153 …drawBitmapToContext(m_data, platformContext()->cr(), bitmap->windowsDIB(), IntSize(point.x(), bitm… in drawWindowsBitmap()
|
/external/webkit/Source/WebCore/platform/graphics/wx/ |
D | ImageWx.cpp | 101 wxGCDC* context = (wxGCDC*)ctxt->platformContext(); in draw() 105 wxWindowDC* context = ctxt->platformContext(); in draw() 185 wxGCDC* context = (wxGCDC*)ctxt->platformContext(); in drawPattern() 188 wxWindowDC* context = ctxt->platformContext(); in drawPattern()
|