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

/macosx-10.9.5/WebCore-7537.78.1/platform/mac/
H A DWebCoreNSCellExtras.m35 CGContextRef cgContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
36 CGContextSaveGState(cgContext);
38 CGContextBeginTransparencyLayerWithRect(cgContext, NSRectToCGRect(cellFrame), 0);
40 CGContextEndTransparencyLayer(cgContext);
41 CGContextRestoreGState(cgContext);
H A DLocalCurrentGraphicsContext.mm33 CGContextRef cgContext = this->cgContext();
34 if (cgContext == [[NSGraphicsContext currentContext] graphicsPort]) {
40 NSGraphicsContext* newContext = [NSGraphicsContext graphicsContextWithGraphicsPort:cgContext flipped:YES];
55 CGContextRef LocalCurrentGraphicsContext::cgContext()
57 CGContextRef cgContext = m_savedGraphicsContext->platformContext();
58 return cgContext;
H A DLocalCurrentGraphicsContext.h34 CGContextRef cgContext();
H A DWidgetMac.mm245 CGContextRef cgContext = p->platformContext();
246 ASSERT(cgContext == [currentContext graphicsPort]);
247 CGContextSaveGState(cgContext);
255 CGContextTranslateCTM(cgContext, viewFrame.origin.x - viewBounds.origin.x, viewFrame.origin.y + viewFrame.size.height + viewBounds.origin.y);
256 CGContextScaleCTM(cgContext, 1, -1);
260 NSGraphicsContext *nsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:cgContext flipped:NO];
265 CGContextRestoreGState(cgContext);
H A DDragImageMac.mm227 CGContextRef cgContext = static_cast<CGContextRef>([nsContext graphicsPort]);
228 GraphicsContext graphicsContext(cgContext);
233 CGContextScaleCTM(cgContext, 1, -1);
249 CGContextScaleCTM(cgContext, 1, -1);
H A DThemeMac.mm570 HIThemeDrawButton(&backgroundBounds, &drawInfo, localContext.cgContext(), kHIThemeOrientationNormal, 0);
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/win/
H A DFontCGWin.cpp133 CGContextRef cgContext = graphicsContext->platformContext(); local
160 uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, shouldUseFontSmoothing);
164 CGContextSetFont(cgContext, platformData.cgFont());
175 CGContextSetTextMatrix(cgContext, matrix);
180 CGContextSetFontSize(cgContext, platformData.size());
181 wkSetCGContextFontRenderingStyle(cgContext, font->isSystemFont(), false, font->platformData().useGDI());
199 CGContextSetTextPosition(cgContext, shadowTextX, shadowTextY);
200 CGContextShowGlyphsWithAdvances(cgContext, glyphBuffer.glyphs(from), static_cast<const CGSize*>(glyphBuffer.advances(from)), numGlyphs);
202 CGContextSetTextPosition(cgContext, point.x() + translation.width() + shadowOffset.width() + font->syntheticBoldOffset(), point.y() + translation.height() + shadowOffset.height());
203 CGContextShowGlyphsWithAdvances(cgContext, glyphBuffe
[all...]
H A DImageCGWin.cpp72 CGContextRef cgContext = CGBitmapContextCreate(bmpInfo.bmBits, bmpInfo.bmWidth, bmpInfo.bmHeight, local
75 GraphicsContext gc(cgContext);
84 CGContextRelease(cgContext);
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/cg/
H A DGraphicsContextPlatformPrivateCG.h43 GraphicsContextPlatformPrivate(CGContextRef cgContext, GraphicsContextCGFlags flags = 0) argument
44 : m_cgContext(cgContext)
H A DImageBufferCG.cpp155 RetainPtr<CGContextRef> cgContext; local
159 cgContext = adoptCF(wkIOSurfaceContextCreate(m_data.m_surface.get(), width.unsafeGet(), height.unsafeGet(), m_data.m_colorSpace));
161 if (!cgContext)
171 cgContext = adoptCF(CGBitmapContextCreate(m_data.m_data, width.unsafeGet(), height.unsafeGet(), 8, m_data.m_bytesPerRow.unsafeGet(), m_data.m_colorSpace, m_data.m_bitmapInfo));
176 if (!cgContext)
179 m_context = adoptPtr(new GraphicsContext(cgContext.get()));
H A DGraphicsContextCG.cpp106 void GraphicsContext::platformInit(CGContextRef cgContext) argument
108 m_data = new GraphicsContextPlatformPrivate(cgContext);
109 setPaintingDisabled(!cgContext);
110 if (cgContext) {
455 CGContextRef cgContext = platformContext(); local
456 AffineTransform userToBaseCTM = AffineTransform(wkGetUserToBaseCTM(cgContext));
463 CGContextSetStrokeColorSpace(cgContext, patternSpace.get());
466 CGContextSetStrokePattern(cgContext, platformPattern.get(), &patternAlpha);
471 CGContextRef cgContext = platformContext(); local
472 AffineTransform userToBaseCTM = AffineTransform(wkGetUserToBaseCTM(cgContext));
[all...]
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/mac/
H A DFontMac.mm140 CGContextRef cgContext = context->platformContext();
179 originalShouldUseFontSmoothing = wkCGContextGetShouldSmoothFonts(cgContext);
180 CGContextSetShouldSmoothFonts(cgContext, shouldSmoothFonts);
198 CGContextSetFont(cgContext, platformData.cgFont());
212 CGContextSetTextMatrix(cgContext, matrix);
215 wkSetCGFontRenderingMode(cgContext, drawFont, context->shouldSubpixelQuantizeFonts());
217 wkSetCGFontRenderingMode(cgContext, drawFont);
220 CGContextSetFontSize(cgContext, 1.0f);
222 CGContextSetFontSize(cgContext, platformData.m_size);
251 showGlyphsWithAdvances(FloatPoint(shadowTextX, shadowTextY), font, cgContext, glyphBuffe
[all...]
/macosx-10.9.5/WebKit-7537.78.2/win/
H A DWebKitGraphics.h52 CGContextRef cgContext; member in struct:WebTextRenderInfo
H A DWebKitGraphics.cpp79 CGContextRef cgContext; member in struct:WebTextRenderInfoWithoutShadow
92 if (!info || info->structSize < sizeof(WebTextRenderInfoWithoutShadow) || !info->cgContext || !info->description)
102 GraphicsContext context(info->cgContext);
/macosx-10.9.5/WebKit-7537.78.2/mac/Misc/
H A DWebCoreStatistics.h89 - (void)printToCGContext:(CGContextRef)cgContext pageWidth:(float)pageWidthInPixels pageHeight:(float)pageHeightInPixels;
H A DWebCoreStatistics.mm282 - (void)printToCGContext:(CGContextRef)cgContext pageWidth:(float)pageWidthInPixels pageHeight:(float)pageHeightInPixels
288 GraphicsContext graphicsContext(cgContext);
H A DWebKitNSStringExtras.mm85 CGContextRef cgContext = static_cast<CGContextRef>([nsContext graphicsPort]);
86 GraphicsContext graphicsContext(cgContext);
91 CGContextScaleCTM(cgContext, 1, -1);
109 CGContextScaleCTM(cgContext, 1, -1);
/macosx-10.9.5/WebCore-7537.78.1/rendering/
H A DRenderThemeMac.mm283 wkDrawMediaUIPart(mediaControlElementType(node), mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
297 wkDrawMediaUIPart(mediaControlElementType(node), mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
311 wkDrawMediaUIPart(mediaControlElementType(node), mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
323 wkDrawMediaUIPart(MediaSeekBackButton, mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
334 wkDrawMediaUIPart(MediaSeekForwardButton, mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
372 wkDrawMediaUIPart(MediaSliderThumb, mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
383 wkDrawMediaUIPart(MediaRewindButton, mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
394 wkDrawMediaUIPart(MediaReturnToRealtimeButton, mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
405 wkDrawMediaUIPart(MediaTimelineContainer, mediaControllerTheme(), localContext.cgContext(), r, getMediaUIPartStateFlags(node));
442 wkDrawMediaUIPart(MediaVolumeSliderContainer, mediaControllerTheme(), localContext.cgContext(),
[all...]
/macosx-10.9.5/WebKit-7537.78.2/mac/Carbon/
H A DCarbonWindowAdapter.mm266 CGContextRef cgContext = (CGContextRef)[[self _threadContext] graphicsPort];
267 CGContextSynchronize( cgContext );
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/API/mac/
H A DWKPrintingView.mm513 CGContextRef cgContext = static_cast<CGContextRef>([[NSGraphicsContext currentContext] graphicsPort]);
515 GraphicsContext context(cgContext);
/macosx-10.9.5/WebKit-7537.78.2/mac/Plugins/
H A DWebNetscapePluginView.mm1426 CGContextRef cgContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
1427 CGContextSaveGState(cgContext);
1429 CGContextTranslateCTM(cgContext, 0.0f, NSHeight(bounds));
1430 CGContextScaleCTM(cgContext, 1.0f, -1.0f);
1432 CGContextRestoreGState(cgContext);

Completed in 154 milliseconds