Searched refs:cgContext (Results 1 - 19 of 19) sorted by relevance

/external/webkit/WebCore/platform/graphics/mac/
H A DFontMac.mm52 CGContextRef cgContext = context->platformContext();
79 bool originalShouldUseFontSmoothing = wkCGContextGetShouldSmoothFonts(cgContext);
81 CGContextSetShouldSmoothFonts(cgContext, newShouldUseFontSmoothing);
98 CGContextSetFont(cgContext, platformData.cgFont());
107 CGContextSetTextMatrix(cgContext, matrix);
110 wkSetCGFontRenderingMode(cgContext, drawFont);
111 CGContextSetFontSize(cgContext, 1.0f);
113 CGContextSetFontSize(cgContext, platformData.m_size);
128 CGContextSetTextPosition(cgContext, point.x() + shadowSize.width(), point.y() + shadowSize.height());
129 CGContextShowGlyphsWithAdvances(cgContext, glyphBuffe
[all...]
/external/webkit/WebCore/platform/wx/wxcode/mac/carbon/
H A Dnon-kerned-drawing.cpp61 CGContextRef cgContext = static_cast<CGContextRef>(dc->GetGraphicsContext()->GetNativeContext()); local
76 CGContextSetFont(cgContext, cgFont);
78 CGContextSetFontSize(cgContext, wxfont->GetPointSize());
82 CGContextSetRGBFillColor(cgContext, red, green, blue, alpha);
88 CGContextSetTextMatrix(cgContext, matrix);
90 CGContextSetTextPosition(cgContext, point.x(), point.y());
111 CGContextShowGlyphsWithAdvances(cgContext, glyphs, sizes, numGlyphs);
H A Dscrollbar_render.cpp73 CGContextRef cgContext = NULL; variable
83 cgContext = (CGContextRef) gc->GetNativeContext();
85 if (cgContext)
105 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal);
/external/webkit/WebCore/platform/graphics/win/
H A DFontCGWin.cpp234 CGContextRef cgContext = graphicsContext->platformContext(); local
236 CGContextSaveGState(cgContext);
240 CGContextSetShouldAntialias(cgContext, fontSmoothingEnabled);
242 CGContextScaleCTM(cgContext, 1.0, -1.0);
243 CGContextTranslateCTM(cgContext, point.x() + glyphBuffer.offsetAt(from).width(), -(point.y() + glyphBuffer.offsetAt(from).height()));
247 CGContextSaveGState(cgContext);
248 CGContextConcatCTM(cgContext, initialGlyphTransform);
251 CGContextAddPath(cgContext, glyphPath.get());
252 CGContextFillPath(cgContext);
254 CGContextTranslateCTM(cgContext, fon
297 CGContextRef cgContext = graphicsContext->platformContext(); local
[all...]
H A DImageCGWin.cpp73 CGContextRef cgContext = CGBitmapContextCreate(bmpInfo.bmBits, bmpInfo.bmWidth, bmpInfo.bmHeight, local
76 GraphicsContext gc(cgContext);
85 CGContextRelease(cgContext);
H A DMediaPlayerPrivateQuickTimeWin.cpp569 CGContextRef cgContext = context.platformContext(); local
582 CGContextSaveGState(cgContext);
585 CGContextScaleCTM(cgContext, 1, -1);
586 CGContextTranslateCTM(cgContext, rect.width() - drawRect.size.width, m_qtVideoLayer ? -rect.height() : 0);
588 CGContextTranslateCTM(cgContext, rect.width() - drawRect.size.width, 0);
591 CGContextSetFillColor(cgContext, backgroundColor);
592 CGContextFillRect(cgContext, drawRect);
595 CGContextSetFillColor(cgContext, textColor);
596 CGContextSetTextMatrix(cgContext, CGAffineTransformMakeScale(1, -1));
597 CGContextSelectFont(cgContext, "Helvetic
[all...]
/external/webkit/WebCore/platform/graphics/cg/
H A DGraphicsContextPlatformPrivateCG.h38 GraphicsContextPlatformPrivate(CGContextRef cgContext) argument
39 : m_cgContext(cgContext)
H A DGraphicsContextCG.cpp145 GraphicsContext::GraphicsContext(CGContextRef cgContext) argument
147 , m_data(new GraphicsContextPlatformPrivate(cgContext))
149 setPaintingDisabled(!cgContext);
150 if (cgContext) {
470 CGContextRef cgContext = platformContext(); local
477 CGContextSetStrokeColorSpace(cgContext, patternSpace.get());
480 CGContextSetStrokePattern(cgContext, platformPattern.get(), &patternAlpha);
485 CGContextRef cgContext = platformContext(); local
492 CGContextSetFillColorSpace(cgContext, patternSpace.get());
495 CGContextSetFillPattern(cgContext, platformPatter
[all...]
H A DImageBufferCG.cpp91 RetainPtr<CGContextRef> cgContext(AdoptCF, CGBitmapContextCreate(m_data.m_data, size.width(), size.height(), 8, bytesPerRow,
93 if (!cgContext)
96 m_context.set(new GraphicsContext(cgContext.get()));
/external/webkit/WebKit/win/
H A DWebKitGraphics.h52 CGContextRef cgContext; member in struct:WebTextRenderInfo
H A DWebKitGraphics.cpp84 CGContextRef cgContext; member in struct:WebTextRenderInfoWithoutShadow
97 if (!info || info->structSize < sizeof(WebTextRenderInfoWithoutShadow) || !info->cgContext || !info->description)
107 GraphicsContext context(info->cgContext);
/external/webkit/WebKitTools/DumpRenderTree/cg/
H A DPixelDumpSupportCG.h67 CGContextRef cgContext() const { return m_context.get(); } function in class:BitmapContext
H A DPixelDumpSupportCG.cpp73 CGContextRef bitmapContext = context->cgContext();
111 RetainPtr<CGImageRef> image(AdoptCF, CGBitmapContextCreateImage(context->cgContext()));
/external/webkit/WebCore/platform/mac/
H A DWidgetMac.mm217 CGContextRef cgContext = p->platformContext();
218 ASSERT(cgContext == [currentContext graphicsPort]);
219 CGContextSaveGState(cgContext);
225 CGContextTranslateCTM(cgContext, viewFrame.origin.x - viewBounds.origin.x, viewFrame.origin.y + viewFrame.size.height + viewBounds.origin.y);
226 CGContextScaleCTM(cgContext, 1, -1);
233 NSGraphicsContext *nsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:cgContext flipped:YES];
238 CGContextRestoreGState(cgContext);
/external/webkit/WebCore/plugins/mac/
H A DPluginViewMac.cpp490 CGContextRef cgContext = m_npCgContext.context; local
491 if (!cgContext)
494 CGContextSaveGState(cgContext);
497 CGContextTranslateCTM(cgContext, offset.x(), offset.y());
509 CGContextClipToRect(cgContext, r);
530 CGContextRestoreGState(cgContext);
/external/webkit/WebKit/mac/Misc/
H A DWebKitNSStringExtras.mm79 CGContextRef cgContext = static_cast<CGContextRef>([nsContext graphicsPort]);
80 GraphicsContext graphicsContext(cgContext);
85 CGContextScaleCTM(cgContext, 1, -1);
101 CGContextScaleCTM(cgContext, 1, -1);
/external/webkit/WebKitLibraries/
H A DWebKitSystemInterface.h117 void WKSetCGFontRenderingMode(CGContextRef cgContext, NSFont *font);
118 BOOL WKCGContextGetShouldSmoothFonts(CGContextRef cgContext);
/external/webkit/WebKit/mac/Carbon/
H A DCarbonWindowAdapter.mm264 CGContextRef cgContext = (CGContextRef)[[self _threadContext] graphicsPort];
265 CGContextSynchronize( cgContext );
/external/webkit/WebKit/mac/Plugins/
H A DWebNetscapePluginView.mm1412 CGContextRef cgContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
1413 CGContextSaveGState(cgContext);
1415 CGContextTranslateCTM(cgContext, 0.0f, NSHeight(bounds));
1416 CGContextScaleCTM(cgContext, 1.0f, -1.0f);
1418 CGContextRestoreGState(cgContext);

Completed in 1509 milliseconds