Home
last modified time | relevance | path

Searched refs:hdc (Results 1 – 25 of 90) sorted by relevance

1234

/external/webkit/Source/WebCore/platform/graphics/win/
DSimpleFontDataCairoWin.cpp55 HDC hdc = GetDC(0); in platformInit() local
56 SaveDC(hdc); in platformInit()
61 cairo_win32_scaled_font_select_font(scaledFont, hdc); in platformInit()
64 GetTextMetrics(hdc, &textMetrics); in platformInit()
77 if (GetOutlineTextMetrics(hdc, sizeof(metrics), &metrics) > 0) { in platformInit()
81 DWORD len = GetGlyphOutline(hdc, 'x', GGO_METRICS, &gm, 0, 0, &mat); in platformInit()
93 RestoreDC(hdc, -1); in platformInit()
94 ReleaseDC(0, hdc); in platformInit()
115 HDC hdc = GetDC(0); in platformWidthForGlyph() local
116 SaveDC(hdc); in platformWidthForGlyph()
[all …]
DSimpleFontDataWin.cpp74 HDC hdc = GetDC(0); in initGDIFont() local
75 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in initGDIFont()
77 GetOutlineTextMetrics(hdc, sizeof(metrics), &metrics); in initGDIFont()
92 DWORD len = GetGlyphOutline(hdc, 'x', GGO_METRICS, &gm, 0, 0, &mat); in initGDIFont()
99 SelectObject(hdc, oldFont); in initGDIFont()
100 ReleaseDC(0, hdc); in initGDIFont()
207 HDC hdc = GetDC(0); in boundsForGDIGlyph() local
208 SetGraphicsMode(hdc, GM_ADVANCED); in boundsForGDIGlyph()
209 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in boundsForGDIGlyph()
213 GetGlyphOutline(hdc, glyph, GGO_METRICS | GGO_GLYPH_INDEX, &gdiMetrics, 0, 0, &identity); in boundsForGDIGlyph()
[all …]
DFontPlatformDataWin.cpp54 HDC hdc = GetDC(0); in FontPlatformData() local
55 SaveDC(hdc); in FontPlatformData()
57 SelectObject(hdc, font); in FontPlatformData()
58 UINT bufferSize = GetOutlineTextMetrics(hdc, 0, NULL); in FontPlatformData()
65 GetOutlineTextMetricsW(hdc, bufferSize, metrics); in FontPlatformData()
68 platformDataInit(font, size, hdc, faceName); in FontPlatformData()
73 RestoreDC(hdc, -1); in FontPlatformData()
74 ReleaseDC(0, hdc); in FontPlatformData()
DFontCacheWin.cpp73 static int CALLBACK metaFileEnumProc(HDC hdc, HANDLETABLE* table, CONST ENHMETARECORD* record, int … in metaFileEnumProc() argument
160 static bool currentFontContainsCharacter(HDC hdc, UChar character) in currentFontContainsCharacter() argument
163 glyphsetBuffer.resize(GetFontUnicodeRanges(hdc, 0)); in currentFontContainsCharacter()
165 GetFontUnicodeRanges(hdc, glyphset); in currentFontContainsCharacter()
175 static HFONT createMLangFont(IMLangFontLink2* langFontLink, HDC hdc, DWORD codePageMask, UChar char… in createMLangFont() argument
179 if (SUCCEEDED(langFontLink->MapFont(hdc, codePageMask, character, &MLangFont)) && MLangFont) { in createMLangFont()
192 HDC hdc = GetDC(0); in getFontDataForCharacters() local
194 HGDIOBJ oldFont = SelectObject(hdc, primaryFont); in getFontDataForCharacters()
209 hfont = createMLangFont(langFontLink, hdc, CJKCodePageMasks[i]); in getFontDataForCharacters()
213 SelectObject(hdc, hfont); in getFontDataForCharacters()
[all …]
DFontCGWin.cpp50 static CGPathRef createPathForGlyph(HDC hdc, Glyph glyph) in createPathForGlyph() argument
58 …DWORD outlineLength = GetGlyphOutline(hdc, glyph, GGO_GLYPH_INDEX | GGO_NATIVE, &glyphMetrics, 0, … in createPathForGlyph()
64 …GetGlyphOutline(hdc, glyph, GGO_GLYPH_INDEX | GGO_NATIVE, &glyphMetrics, outlineLength, outline.da… in createPathForGlyph()
161 HDC hdc = 0; in drawGDIGlyphs() local
165 hdc = graphicsContext->getWindowsContext(textRect, true, false); in drawGDIGlyphs()
166 if (!hdc) { in drawGDIGlyphs()
178 hdc = bitmap->hdc(); in drawGDIGlyphs()
187 SetWorldTransform(hdc, &xform); in drawGDIGlyphs()
190 SelectObject(hdc, font->platformData().hfont()); in drawGDIGlyphs()
194 SetTextColor(hdc, RGB(0, 0, 0)); in drawGDIGlyphs()
[all …]
DGraphicsContextCairoWin.cpp39 static cairo_t* createCairoContextWithHDC(HDC hdc, bool hasAlpha) in createCairoContextWithHDC() argument
42 SetGraphicsMode(hdc, GM_ADVANCED); in createCairoContextWithHDC()
46 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); in createCairoContextWithHDC()
50 surface = cairo_win32_surface_create(hdc); in createCairoContextWithHDC()
123 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument
126 if (!hdc || !createdBitmap) { in releaseWindowsContext()
134 OwnPtr<HBITMAP> bitmap = adoptPtr(static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP))); in releaseWindowsContext()
148 ::DeleteDC(hdc); in releaseWindowsContext()
DGraphicsContextCGWin.cpp40 static CGContextRef CGContextWithHDC(HDC hdc, bool hasAlpha) in CGContextWithHDC() argument
42 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); in CGContextWithHDC()
64 SetGraphicsMode(hdc, GM_ADVANCED); in CGContextWithHDC()
69 GraphicsContext::GraphicsContext(HDC hdc, bool hasAlpha) in GraphicsContext() argument
72 platformInit(hdc, hasAlpha); in GraphicsContext()
75 void GraphicsContext::platformInit(HDC hdc, bool hasAlpha) in platformInit() argument
77 m_data = new GraphicsContextPlatformPrivate(CGContextWithHDC(hdc, hasAlpha)); in platformInit()
79 m_data->m_hdc = hdc; in platformInit()
90 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument
101 OwnPtr<HBITMAP> bitmap = adoptPtr(static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP))); in releaseWindowsContext()
[all …]
DUniscribeController.cpp251 HDC hdc = GetDC(0); in shapeAndPlaceItem() local
253 HFONT oldFont = (HFONT)SelectObject(hdc, hfont); in shapeAndPlaceItem()
254 …placeResult = ScriptPlace(hdc, fontData->scriptCache(), glyphs.data(), glyphs.size(), visualAttrib… in shapeAndPlaceItem()
256 SelectObject(hdc, oldFont); in shapeAndPlaceItem()
257 ReleaseDC(0, hdc); in shapeAndPlaceItem()
383 HDC hdc = 0; in shape() local
388 shapeResult = ScriptShape(hdc, fontData->scriptCache(), str, len, glyphs.size(), &item.a, in shape()
393 ASSERT(!hdc); in shape()
394 hdc = GetDC(0); in shape()
396 oldFont = (HFONT)SelectObject(hdc, hfont); in shape()
[all …]
/external/icu4c/samples/layout/
DGDIFontInstance.cpp113 HDC hdc = surface->getHDC(); in GDIFontInstance() local
119 SaveDC(hdc); in GDIFontInstance()
121 SetGraphicsMode(hdc, GM_ADVANCED); in GDIFontInstance()
122 ModifyWorldTransform(hdc, NULL, MWT_IDENTITY); in GDIFontInstance()
123 SetViewportOrgEx(hdc, 0, 0, NULL); in GDIFontInstance()
124 SetWindowOrgEx(hdc, 0, 0, NULL); in GDIFontInstance()
126 dpiX = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSX); in GDIFontInstance()
127 dpiY = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSY); in GDIFontInstance()
133 DPtoLP(hdc, &pt, 1); in GDIFontInstance()
161 SelectObject(hdc, fFont); in GDIFontInstance()
[all …]
Dgdiglue.cpp37 rs_surface *rs_gdiRenderingSurfaceOpen(HDC hdc) in rs_gdiRenderingSurfaceOpen() argument
39 return (rs_surface *) new GDISurface(hdc); in rs_gdiRenderingSurfaceOpen()
42 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) in rs_gdiRenderingSurfaceSetHDC() argument
46 rs->setHDC(hdc); in rs_gdiRenderingSurfaceSetHDC()
Dlayout.cpp119 HDC hdc; in WndProc() local
132 hdc = GetDC(hwnd); in WndProc()
133 surface = new GDISurface(hdc); in WndProc()
139 ReleaseDC(hwnd, hdc); in WndProc()
152 ReleaseDC(hwnd, hdc); in WndProc()
233 hdc = BeginPaint(hwnd, &ps); in WndProc()
234 SetBkMode(hdc, TRANSPARENT); in WndProc()
245 surface->setHDC(hdc); in WndProc()
292 hdc = GetDC(hwnd); in WndProc()
293 surface->setHDC(hdc); in WndProc()
Dclayout.c120 HDC hdc; in WndProc() local
133 hdc = GetDC(hwnd); in WndProc()
135 surface = rs_gdiRenderingSurfaceOpen(hdc); in WndProc()
141 ReleaseDC(hwnd, hdc); in WndProc()
154 ReleaseDC(hwnd, hdc); in WndProc()
235 hdc = BeginPaint(hwnd, &ps); in WndProc()
236 SetBkMode(hdc, TRANSPARENT); in WndProc()
247 rs_gdiRenderingSurfaceSetHDC(surface, hdc); in WndProc()
296 hdc = GetDC(hwnd); in WndProc()
297 rs_gdiRenderingSurfaceSetHDC(surface, hdc); in WndProc()
/external/qemu/distrib/sdl-1.2.15/src/video/windib/
DSDL_dibvideo.c116 static void DIB_WinPAINT(_THIS, HDC hdc);
307 HDC hdc; in DIB_CreatePalette() local
315 hdc = GetDC(SDL_Window); in DIB_CreatePalette()
316 GetSystemPaletteEntries(hdc, 0, ncolors, palette->palPalEntry); in DIB_CreatePalette()
317 ReleaseDC(SDL_Window, hdc); in DIB_CreatePalette()
463 HDC hdc; in DIB_SussScreenDepth() local
465 hdc = GetDC(SDL_Window); in DIB_SussScreenDepth()
466 depth = GetDeviceCaps(hdc, PLANES) * GetDeviceCaps(hdc, BITSPIXEL); in DIB_SussScreenDepth()
467 ReleaseDC(SDL_Window, hdc); in DIB_SussScreenDepth()
473 HDC hdc; in DIB_SussScreenDepth()
[all …]
/external/webkit/Source/WebCore/platform/win/
DScrollbarThemeWin.cpp72 …ULT, WINAPI, (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, const RECT* pRect, const RECT* pC…
249 DrawThemeBackground(scrollbarTheme, windowsContext.hdc(), part, state, &themeRect, 0); in paintTrackPiece()
254 HDC hdc = windowsContext.hdc(); in paintTrackPiece() local
256 ::FillRect(hdc, &themeRect, HBRUSH(COLOR_SCROLLBAR+1)); in paintTrackPiece()
261 SaveDC(hdc); in paintTrackPiece()
262 ::SetTextColor(hdc, ::GetSysColor(COLOR_3DHILIGHT)); in paintTrackPiece()
263 ::SetBkColor(hdc, ::GetSysColor(COLOR_3DFACE)); in paintTrackPiece()
264 ::SetBrushOrgEx(hdc, rect.x(), rect.y(), NULL); in paintTrackPiece()
265 ::SelectObject(hdc, brush); in paintTrackPiece()
266 ::FillRect(hdc, &themeRect, brush); in paintTrackPiece()
[all …]
/external/webkit/Source/WebCore/platform/wx/wxcode/win/
Dnon-kerned-drawing.cpp81 HDC hdc = 0; in drawTextWithSpacing() local
96 hdc = g->GetHDC(); in drawTextWithSpacing()
101 hdc = static_cast<HDC>(dc->GetHDC()); in drawTextWithSpacing()
115 ::SelectObject(hdc, GetHfontOf(*wxfont)); in drawTextWithSpacing()
118 ::SetTextColor(hdc, color.GetPixel()); in drawTextWithSpacing()
121 ::SetBkMode(hdc, TRANSPARENT); in drawTextWithSpacing()
125 …::ExtTextOut(hdc, x, y, ETO_GLYPH_INDEX, 0, reinterpret_cast<const WCHAR*>(glyphs), numGlyphs, sp… in drawTextWithSpacing()
127 ::SetBkMode(hdc, TRANSPARENT); in drawTextWithSpacing()
130 g->ReleaseHDC(hdc); in drawTextWithSpacing()
/external/skia/include/utils/
DSkWGL.h70 const char* getExtensionsString(HDC hdc) const;
71 BOOL choosePixelFormat(HDC hdc, const int*, const FLOAT*, UINT, int*, UINT*) const;
73 BOOL getPixelFormatAttribfv(HDC hdc, int, int, UINT, const int*, FLOAT*) const;
77 typedef const char* (WINAPI *GetExtensionsStringProc)(HDC hdc);
78 …typedef BOOL (WINAPI *ChoosePixelFormatProc)(HDC hdc, const int *, const FLOAT *, UINT, int *, UIN…
80 typedef BOOL (WINAPI *GetPixelFormatAttribfvProc)(HDC hdc, int, int, UINT, const int*, FLOAT*);
/external/webkit/Source/WebCore/platform/graphics/wince/
DSharedBitmap.cpp246 void SharedBitmap::draw(HDC hdc, const IntRect& dstRect, const IntRect& srcRect, CompositeOperator … in draw() argument
275 StretchDIBits(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(), in draw()
280 OwnPtr<HDC> hmemdc = adoptPtr(CreateCompatibleDC(hdc)); in draw()
285 …bool success = alphaBlendIfSupported(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.heigh… in draw()
289 … TransparentBlt(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(), hmemdc.get(), in draw()
346 static void drawPatternSimple(HDC hdc, const RECT& destRect, HBITMAP hbmp, const POINT& phase) in drawPatternSimple() argument
353 SetBrushOrgEx(hdc, destRect.left - phase.x, destRect.top - phase.y, &oldOrg); in drawPatternSimple()
354 FillRect(hdc, &destRect, hBrush.get()); in drawPatternSimple()
355 SetBrushOrgEx(hdc, oldOrg.x, oldOrg.y, 0); in drawPatternSimple()
358 static void drawPatternSimple(HDC hdc, const RECT& destRect, const SharedBitmap* bmp, const SIZE& b… in drawPatternSimple() argument
[all …]
DFontCacheWinCE.cpp77 static bool currentFontContainsCharacter(IMLangFontLink2* langFontLink, HDC hdc, UChar character) in currentFontContainsCharacter() argument
80 if (S_OK != langFontLink->GetFontUnicodeRanges(hdc, &unicodeRanges, 0)) in currentFontContainsCharacter()
86 if (S_OK != langFontLink->GetFontUnicodeRanges(hdc, &unicodeRanges, glyphsetBuffer.data())) in currentFontContainsCharacter()
98 static bool currentFontContainsCharacter(IMLangFontLink* langFontLink, HDC hdc, HFONT hfont, UChar … in currentFontContainsCharacter() argument
101 HRESULT result = langFontLink->GetFontCodePages(hdc, hfont, &fontCodePages); in currentFontContainsCharacter()
117 static HFONT createMLangFont(IMLangFontLink2* langFontLink, HDC hdc, DWORD codePageMask, UChar char… in createMLangFont() argument
120 if (SUCCEEDED(langFontLink->MapFont(hdc, codePageMask, character, &mlangFont))) in createMLangFont()
126 static HFONT createMLangFont(IMLangFontLink* langFontLink, HDC hdc, const FontPlatformData& refFont… in createMLangFont() argument
129 LRESULT result = langFontLink->MapFont(hdc, codePageMask, refFont.hfont(), &mlangFont); in createMLangFont()
/external/webkit/Source/WebKit2/WebProcess/WebPage/win/
DChunkedUpdateDrawingAreaWin.cpp40 OwnPtr<HDC> hdc(::CreateCompatibleDC(0)); in paintIntoUpdateChunk() local
46 HBITMAP hbmpOld = static_cast<HBITMAP>(::SelectObject(hdc.get(), hbmp.get())); in paintIntoUpdateChunk()
48 GraphicsContext gc(hdc.get()); in paintIntoUpdateChunk()
53 ::FillRect(hdc.get(), &rect, (HBRUSH)::GetStockObject(WHITE_BRUSH)); in paintIntoUpdateChunk()
61 ::SelectObject(hdc.get(), hbmpOld); in paintIntoUpdateChunk()
/external/chromium/webkit/glue/
Dwebthemeengine_impl_win.cc386 HDC hdc = skia::BeginPlatformPaint(canvas); in paintMenuList() local
390 hdc, part, state, classic_state, &native_rect); in paintMenuList()
398 HDC hdc = skia::BeginPlatformPaint(canvas); in paintScrollbarArrow() local
402 hdc, state, classic_state, &native_rect); in paintScrollbarArrow()
410 HDC hdc = skia::BeginPlatformPaint(canvas); in paintScrollbarThumb() local
414 hdc, part, state, classic_state, &native_rect); in paintScrollbarThumb()
422 HDC hdc = skia::BeginPlatformPaint(canvas); in paintScrollbarTrack() local
427 hdc, part, state, classic_state, &native_rect, &native_align_rect, in paintScrollbarTrack()
436 HDC hdc = skia::BeginPlatformPaint(canvas); in paintSpinButton() local
440 hdc, part, state, classic_state, &native_rect); in paintSpinButton()
[all …]
/external/webkit/Source/WebKit/win/
DWebNodeHighlight.cpp137 HDC hdc = ::CreateCompatibleDC(::GetDC(m_overlay)); in update() local
138 if (!hdc) in update()
151 OwnPtr<HBITMAP> hbmp(::CreateDIBSection(hdc, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0)); in update()
153 ::SelectObject(hdc, hbmp.get()); in update()
155 GraphicsContext context(hdc); in update()
173 … ::UpdateLayeredWindow(m_overlay, ::GetDC(0), &dstPoint, &size, hdc, &srcPoint, 0, &bf, ULW_ALPHA); in update()
175 ::DeleteDC(hdc); in update()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DFontChromiumWin.cpp308 HDC hdc() const { return m_hdc; } in hdc() function in WebCore::__anon57d1ebc30111::TransparencyAwareUniscribePainter
497 HDC hdc = painter.hdc(); in drawComplexText() local
498 if (windowsCanHandleTextDrawing(graphicsContext) && !hdc) in drawComplexText()
504 if (hdc) { in drawComplexText()
505 SetTextColor(hdc, skia::SkColorToCOLORREF(color)); in drawComplexText()
506 SetBkMode(hdc, TRANSPARENT); in drawComplexText()
517 COLORREF savedTextColor = GetTextColor(hdc); in drawComplexText()
518 SetTextColor(hdc, textColor); in drawComplexText()
519 state.draw(graphicsContext, hdc, static_cast<int>(point.x()) + shadowOffset.width(), in drawComplexText()
521 SetTextColor(hdc, savedTextColor); in drawComplexText()
[all …]
DFontCacheChromiumWin.cpp288 HDC hdc = GetDC(0); in fontContainsCharacter() local
289 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(hdc, hfont)); in fontContainsCharacter()
290 int count = GetFontUnicodeRanges(hdc, 0); in fontContainsCharacter()
292 count = GetFontUnicodeRanges(hdc, 0); in fontContainsCharacter()
295 SelectObject(hdc, oldFont); in fontContainsCharacter()
296 ReleaseDC(0, hdc); in fontContainsCharacter()
301 glyphsetBuffer.resize(GetFontUnicodeRanges(hdc, 0)); in fontContainsCharacter()
305 count = GetFontUnicodeRanges(hdc, glyphset); in fontContainsCharacter()
307 SelectObject(hdc, oldFont); in fontContainsCharacter()
308 ReleaseDC(0, hdc); in fontContainsCharacter()
[all …]
/external/webkit/Source/WebCore/plugins/win/
DPluginViewWin.cpp159 lpPaint->hdc = pluginView->m_wmPrintHDC; in hookedBeginPaint()
521 void PluginView::paintIntoTransformedContext(HDC hdc) in paintIntoTransformedContext() argument
525 …SendMessage(platformPluginWidget(), WM_PRINTCLIENT, reinterpret_cast<WPARAM>(hdc), PRF_CLIENT | PR… in paintIntoTransformedContext()
531 m_npWindow.window = hdc; in paintIntoTransformedContext()
552 npEvent.wParam = reinterpret_cast<uintptr_t>(hdc); in paintIntoTransformedContext()
579 HDC hdc = windowsContext.hdc(); in paintWindowedPluginIntoContext() local
581 GetWorldTransform(hdc, &originalTransform); in paintWindowedPluginIntoContext()
589 SetWorldTransform(hdc, &transform); in paintWindowedPluginIntoContext()
591 paintIntoTransformedContext(hdc); in paintWindowedPluginIntoContext()
593 SetWorldTransform(hdc, &originalTransform); in paintWindowedPluginIntoContext()
[all …]
/external/webkit/Source/WebCore/platform/graphics/wx/
DSimpleFontDataWx.cpp187 HDC hdc = GetDC(0); in widthForGDIGlyph() local
188 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in widthForGDIGlyph()
190 GetCharWidthI(hdc, glyph, 1, 0, &width); in widthForGDIGlyph()
191 SelectObject(hdc, oldFont); in widthForGDIGlyph()
192 ReleaseDC(0, hdc); in widthForGDIGlyph()

1234