Searched refs:platformContext (Results 1 - 25 of 120) sorted by relevance

12345

/external/webkit/Source/WebKit2/Shared/API/c/cg/
H A DWKGraphicsContextCG.cpp37 return toImpl(graphicsContextRef)->platformContext();
H A DWKImageCG.cpp47 CGContextDrawImage(graphicsContext->platformContext(), CGRectMake(0, 0, imageSize.width(), imageSize.height()), imageRef);
/external/webkit/Source/WebKit2/Shared/API/c/gtk/
H A DWKGraphicsContextGtk.cpp37 return toImpl(graphicsContextRef)->platformContext();
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DGraphicsContextSkia.cpp226 setPaintingDisabled(!gc || !platformContext()->canvas());
234 PlatformGraphicsContext* GraphicsContext::platformContext() const function in class:WebCore::GraphicsContext
247 if (platformContext()->useGPU())
248 platformContext()->gpuCanvas()->save();
251 platformContext()->save();
259 if (platformContext()->useGPU())
260 platformContext()->gpuCanvas()->restore();
263 platformContext()->restore();
275 platformContext()->canvas()->saveLayerAlpha(
286 platformContext()
[all...]
H A DGraphicsContextPlatformPrivate.h43 GraphicsContextPlatformPrivate(PlatformContextSkia* platformContext) argument
44 : m_context(platformContext) { }
H A DImageSkia.cpp70 static ResamplingMode computeResamplingMode(PlatformContextSkia* platformContext, const NativeImageSkia& bitmap, int srcWidth, int srcHeight, float destWidth, float destHeight) argument
72 if (platformContext->hasImageResamplingHint()) {
75 platformContext->getImageResamplingHint(&srcSize, &dstSize);
148 if (platformContext->interpolationQuality() == InterpolationHigh
149 && !(platformContext->canvas()->getTotalMatrix().getType() & (SkMatrix::kAffine_Mask | SkMatrix::kPerspective_Mask)))
259 static void paintSkBitmap(PlatformContextSkia* platformContext, const NativeImageSkia& bitmap, const SkIRect& srcRect, const SkRect& destRect, const SkXfermode::Mode& compOp) argument
264 paint.setAlpha(platformContext->getNormalizedAlpha());
265 paint.setLooper(platformContext->getDrawLooper());
267 SkCanvas* canvas = platformContext->canvas();
273 resampling = platformContext
[all...]
H A DSkiaFontWin.cpp260 if (context->platformContext()->getTextDrawingMode() != TextModeFill)
271 if (!context->platformContext()->isNativeFontRenderingAllowed())
281 PlatformContextSkia* platformContext,
289 SkCanvas* canvas = platformContext->canvas();
290 if (!platformContext->isNativeFontRenderingAllowed()) {
360 PlatformContextSkia* platformContext = context->platformContext(); local
361 TextDrawingModeFlags textMode = platformContext->getTextDrawingMode();
365 platformContext->setupPaintForFilling(&paint);
367 if (!platformContext
279 skiaDrawText(HFONT hfont, HDC dc, PlatformContextSkia* platformContext, const SkPoint& point, SkPaint* paint, const WORD* glyphs, const int* advances, const GOFFSET* offsets, int numGlyphs) argument
[all...]
H A DImageBufferSkia.cpp78 m_context->platformContext()->setDrawingToImageBuffer(true);
108 m_context->platformContext()->syncSoftwareCanvas();
114 context->platformContext()->beginLayerClippedToImage(rect, this);
120 if (m_data.m_platformContext.useGPU() && context->platformContext()->useGPU()) {
121 if (context->platformContext()->canAccelerate()) {
129 context->platformContext()->prepareForHardwareDraw();
130 context->platformContext()->gpuCanvas()->drawTexturedRect(sourceTexture, m_size, srcRectFlipped, destRectNormalized, styleColorSpace, op);
149 const SkBitmap& bitmap = *context()->platformContext()->bitmap();
259 context()->platformContext()->syncSoftwareCanvas();
260 return getImageData<Unmultiplied>(rect, *context()->platformContext()
[all...]
/external/webkit/Source/WebKit2/Shared/
H A DWebGraphicsContext.cpp39 : m_platformContext(graphicsContext->platformContext())
41 : m_platformContext(graphicsContext->platformContext()->cr())
H A DWebGraphicsContext.h51 CGContextRef platformContext() { return m_platformContext.get(); } function in class:WebKit::WebGraphicsContext
53 cairo_t* platformContext() { return m_platformContext.get(); } function in class:WebKit::WebGraphicsContext
/external/webkit/Source/WebCore/platform/graphics/android/context/
H A DGraphicsContextAndroid.cpp58 GraphicsContextPlatformPrivate(PlatformGraphicsContext* platformContext) argument
59 : m_context(platformContext) { }
79 PlatformGraphicsContext* pgc = gc->platformContext();
137 platformContext()->save();
144 platformContext()->restore();
164 platformContext()->drawRect(rect);
174 platformContext()->drawLine(point1, point2);
183 platformContext()->drawLineForText(pt, width);
193 platformContext()->drawLineForTextChecking(pt, width, style);
203 platformContext()
426 PlatformGraphicsContext* GraphicsContext::platformContext() const function in class:WebCore::GraphicsContext
[all...]
/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DGraphicsContextPlatformPrivateCairo.h53 : platformContext(newPlatformContext)
101 PlatformContextCairo* platformContext; member in class:WebCore::GraphicsContextPlatformPrivate
120 GraphicsContextPlatformPrivateToplevel(PlatformContextCairo* platformContext) argument
121 : GraphicsContextPlatformPrivate(platformContext)
127 delete platformContext;
H A DGraphicsContextCairo.cpp152 cairo_t* cairoContext = context->platformContext()->cr();
209 void GraphicsContext::platformInit(PlatformContextCairo* platformContext) argument
211 m_data = new GraphicsContextPlatformPrivate(platformContext);
212 if (platformContext)
213 m_data->syncContext(platformContext->cr());
225 cairo_t* cr = platformContext()->cr();
231 PlatformContextCairo* GraphicsContext::platformContext() const function in class:WebCore::GraphicsContext
233 return m_data->platformContext;
238 platformContext()->save();
252 platformContext()
[all...]
/external/webkit/Source/WebCore/platform/mac/
H A DLocalCurrentGraphicsContext.mm33 if (graphicsContext->platformContext() == [[NSGraphicsContext currentContext] graphicsPort]) {
39 NSGraphicsContext* newContext = [NSGraphicsContext graphicsContextWithGraphicsPort:graphicsContext->platformContext() flipped:YES];
/external/webkit/Source/WebCore/platform/graphics/cg/
H A DPDFDocumentImage.cpp113 CGContextTranslateCTM(context->platformContext(), floorf(-min(zero, min(rx.x, ry.x))), floorf(-min(zero, min(rx.y, ry.y))));
116 CGContextRotateCTM(context->platformContext(), -m_rotation);
119 CGContextTranslateCTM(context->platformContext(), m_mediaBox.x() - m_cropBox.x(), m_mediaBox.y() - m_cropBox.y());
171 CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() - srcRect.y() * vScale);
172 CGContextScaleCTM(context->platformContext(), hScale, vScale);
173 CGContextScaleCTM(context->platformContext(), 1, -1);
174 CGContextTranslateCTM(context->platformContext(), 0, -srcRect.height());
175 CGContextClipToRect(context->platformContext(), CGRectIntegral(srcRect));
180 CGContextTranslateCTM(context->platformContext(), -m_mediaBox.x(), -m_mediaBox.y());
181 CGContextDrawPDFPage(context->platformContext(), CGPDFDocumentGetPag
[all...]
H A DGraphicsContextCG.cpp131 CGContextRef GraphicsContext::platformContext() const function in class:WebCore::GraphicsContext
142 CGContextSaveGState(platformContext());
150 CGContextRestoreGState(platformContext());
163 CGContextRef context = platformContext();
238 CGContextRef context = platformContext();
319 CGContextRef context = platformContext();
420 CGContextRef context = platformContext();
441 CGContextRef context = platformContext();
456 CGContextRef cgContext = platformContext();
471 CGContextRef cgContext = platformContext();
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DFontLinux.cpp113 gc->platformContext()->prepareForSoftwareDraw();
115 SkCanvas* canvas = gc->platformContext()->canvas();
116 TextDrawingModeFlags textMode = gc->platformContext()->getTextDrawingMode();
121 gc->platformContext()->setupPaintForFilling(&paint);
123 adjustTextRenderMode(&paint, gc->platformContext());
140 && gc->platformContext()->getStrokeStyle() != NoStroke
141 && gc->platformContext()->getStrokeThickness() > 0) {
144 gc->platformContext()->setupPaintForStroking(&paint, 0, 0);
146 adjustTextRenderMode(&paint, gc->platformContext());
189 SkCanvas* canvas = gc->platformContext()
[all...]
H A DTransparencyWin.h148 PlatformGraphicsContext* platformContext() const { return m_drawContext ? m_drawContext->platformContext() : 0; } function in class:WebCore::TransparencyWin
/external/webkit/Source/WebCore/rendering/
H A DRenderMediaControls.cpp112 wkDrawMediaUIPart(WKMediaUIPartFullscreenButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
118 wkDrawMediaUIPart(captionsVisible ? WKMediaUIPartHideClosedCaptionsButton : WKMediaUIPartShowClosedCaptionsButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
125 wkDrawMediaUIPart(audioEnabled ? WKMediaUIPartMuteButton : WKMediaUIPartUnMuteButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
132 wkDrawMediaUIPart(canPlay ? WKMediaUIPartPlayButton : WKMediaUIPartPauseButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
136 wkDrawMediaUIPart(WKMediaUIPartRewindButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
139 wkDrawMediaUIPart(WKMediaUIPartSeekBackButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
142 wkDrawMediaUIPart(WKMediaUIPartSeekForwardButton, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
147 wkDrawMediaSliderTrack(themeStyle, paintInfo.context->platformContext(), unzoomedRect, mediaElement->percentLoaded() * mediaElement->duration(), mediaElement->currentTime(), mediaElement->duration(), determineState(o));
152 wkDrawMediaUIPart(WKMediaUIPartTimelineSliderThumb, themeStyle, paintInfo.context->platformContext(), r, determineState(o));
155 wkDrawMediaUIPart(WKMediaUIPartVolumeSliderContainer, themeStyle, paintInfo.context->platformContext(),
[all...]
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DStillImageHaiku.cpp74 context->platformContext()->DrawBitmap(&m_bitmap, sourceRect, destRect);
H A DImageHaiku.cpp116 ctxt->platformContext()->SetDrawingMode(B_OP_ALPHA);
117 ctxt->platformContext()->DrawBitmapAsync(image, srcRect, dstRect);
149 context->platformContext()->SetDrawingMode(B_OP_ALPHA);
151 context->platformContext()->SetDrawingMode(B_OP_COPY);
159 context->platformContext()->DrawBitmapAsync(image, bTileRect, bDstRect);
H A DGradientHaiku.cpp69 context->platformContext()->FillRect(rect, *platformGradient());
/external/webkit/Source/WebCore/platform/gtk/
H A DScrollbarThemeGtk3.cpp81 gtk_render_background(m_context, context->platformContext()->cr(),
83 gtk_render_frame(m_context, context->platformContext()->cr(),
95 gtk_render_frame(m_context, context->platformContext()->cr(), scrollbar->x(), scrollbar->y(), scrollbar->width(), scrollbar->height());
114 gtk_render_slider(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height(),
140 gtk_render_background(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height());
141 gtk_render_frame(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height());
166 gtk_render_arrow(m_context, context->platformContext()->cr(), angle, arrowPoint.x(), arrowPoint.y(), arrowSize);
/external/webkit/Source/WebCore/platform/graphics/qt/
H A DIconQt.cpp62 QPainter *p = static_cast<QPainter*>(ctx->platformContext());
/external/webkit/Source/WebKit2/Shared/qt/
H A DShareableBitmapQt.cpp53 QPainter* painter = context.platformContext();

Completed in 327 milliseconds

12345