Home
last modified time | relevance | path

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

123

/external/webkit/WebCore/platform/graphics/win/
DSimpleFontDataCairoWin.cpp56 HDC hdc = GetDC(0); in platformInit() local
57 SaveDC(hdc); in platformInit()
62 cairo_win32_scaled_font_select_font(scaledFont, hdc); in platformInit()
65 GetTextMetrics(hdc, &textMetrics); in platformInit()
75 if (GetOutlineTextMetrics(hdc, sizeof(metrics), &metrics) > 0) { in platformInit()
79 DWORD len = GetGlyphOutline(hdc, 'x', GGO_METRICS, &gm, 0, 0, &mat); in platformInit()
90 RestoreDC(hdc, -1); in platformInit()
91 ReleaseDC(0, hdc); in platformInit()
104 HDC hdc = GetDC(0); in platformWidthForGlyph() local
105 SaveDC(hdc); in platformWidthForGlyph()
[all …]
DSimpleFontDataWin.cpp68 HDC hdc = GetDC(0); in initGDIFont() local
69 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in initGDIFont()
71 GetOutlineTextMetrics(hdc, sizeof(metrics), &metrics); in initGDIFont()
83 DWORD len = GetGlyphOutline(hdc, 'x', GGO_METRICS, &gm, 0, 0, &mat); in initGDIFont()
89 SelectObject(hdc, oldFont); in initGDIFont()
90 ReleaseDC(0, hdc); in initGDIFont()
184 HDC hdc = GetDC(0); in widthForGDIGlyph() local
185 SetGraphicsMode(hdc, GM_ADVANCED); in widthForGDIGlyph()
186 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in widthForGDIGlyph()
188 GetCharWidthI(hdc, glyph, 1, 0, &width); in widthForGDIGlyph()
[all …]
DFontPlatformDataWin.cpp51 HDC hdc = GetDC(0); in FontPlatformData() local
52 SaveDC(hdc); in FontPlatformData()
54 SelectObject(hdc, font); in FontPlatformData()
55 UINT bufferSize = GetOutlineTextMetrics(hdc, 0, NULL); in FontPlatformData()
62 GetOutlineTextMetricsW(hdc, bufferSize, metrics); in FontPlatformData()
65 platformDataInit(font, size, hdc, faceName); in FontPlatformData()
70 RestoreDC(hdc, -1); in FontPlatformData()
71 ReleaseDC(0, hdc); in FontPlatformData()
DFontCacheWin.cpp72 static int CALLBACK metaFileEnumProc(HDC hdc, HANDLETABLE* table, CONST ENHMETARECORD* record, int … in metaFileEnumProc() argument
159 static bool currentFontContainsCharacter(HDC hdc, UChar character) in currentFontContainsCharacter() argument
162 glyphsetBuffer.resize(GetFontUnicodeRanges(hdc, 0)); in currentFontContainsCharacter()
164 GetFontUnicodeRanges(hdc, glyphset); in currentFontContainsCharacter()
174 static HFONT createMLangFont(IMLangFontLink2* langFontLink, HDC hdc, DWORD codePageMask, UChar char… in createMLangFont() argument
178 if (SUCCEEDED(langFontLink->MapFont(hdc, codePageMask, character, &MLangFont)) && MLangFont) { in createMLangFont()
191 HDC hdc = GetDC(0); in getFontDataForCharacters() local
193 HGDIOBJ oldFont = SelectObject(hdc, primaryFont); in getFontDataForCharacters()
208 hfont = createMLangFont(langFontLink, hdc, CJKCodePageMasks[i]); in getFontDataForCharacters()
212 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()
159 HDC hdc = 0; in drawGDIGlyphs() local
163 hdc = graphicsContext->getWindowsContext(textRect, true, false); in drawGDIGlyphs()
164 if (!hdc) { in drawGDIGlyphs()
172 hdc = bitmap->hdc(); in drawGDIGlyphs()
181 SetWorldTransform(hdc, &xform); in drawGDIGlyphs()
184 SelectObject(hdc, font->platformData().hfont()); in drawGDIGlyphs()
188 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()
44 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); in createCairoContextWithHDC()
82 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument
84 if (!mayCreateBitmap || !hdc || !inTransparencyLayer()) { in releaseWindowsContext()
92 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); in releaseWindowsContext()
120 ::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()
59 SetGraphicsMode(hdc, GM_ADVANCED); in CGContextWithHDC()
64 GraphicsContext::GraphicsContext(HDC hdc, bool hasAlpha) in GraphicsContext() argument
66 , m_data(new GraphicsContextPlatformPrivate(CGContextWithHDC(hdc, hasAlpha))) in GraphicsContext()
69 m_data->m_hdc = hdc; in GraphicsContext()
80 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend… in releaseWindowsContext() argument
82 if (mayCreateBitmap && hdc && inTransparencyLayer()) { in releaseWindowsContext()
86 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); in releaseWindowsContext()
106 ::DeleteDC(hdc); in releaseWindowsContext()
DUniscribeController.cpp246 HDC hdc = GetDC(0); in shapeAndPlaceItem() local
248 HFONT oldFont = (HFONT)SelectObject(hdc, hfont); in shapeAndPlaceItem()
249 …placeResult = ScriptPlace(hdc, fontData->scriptCache(), glyphs.data(), glyphs.size(), visualAttrib… in shapeAndPlaceItem()
251 SelectObject(hdc, oldFont); in shapeAndPlaceItem()
252 ReleaseDC(0, hdc); in shapeAndPlaceItem()
406 HDC hdc = 0; in shape() local
411 shapeResult = ScriptShape(hdc, fontData->scriptCache(), str, len, glyphs.size(), &item.a, in shape()
416 ASSERT(!hdc); in shape()
417 hdc = GetDC(0); in shape()
419 oldFont = (HFONT)SelectObject(hdc, hfont); in shape()
[all …]
DIconWin.cpp90 HDC hdc = context->getWindowsContext(r); in paint() local
92 DrawIconEx(hdc, r.x(), r.y(), m_hIcon, r.width(), r.height(), 0, 0, DI_NORMAL); in paint()
94 context->releaseWindowsContext(hdc, r); in paint()
/external/qemu/distrib/sdl-1.2.12/src/video/windib/
DSDL_dibvideo.c95 static void DIB_WinPAINT(_THIS, HDC hdc);
273 HDC hdc; in DIB_CreatePalette() local
281 hdc = GetDC(SDL_Window); in DIB_CreatePalette()
282 GetSystemPaletteEntries(hdc, 0, ncolors, palette->palPalEntry); in DIB_CreatePalette()
283 ReleaseDC(SDL_Window, hdc); in DIB_CreatePalette()
419 HDC hdc; in DIB_SussScreenDepth() local
421 hdc = GetDC(SDL_Window); in DIB_SussScreenDepth()
422 depth = GetDeviceCaps(hdc, PLANES) * GetDeviceCaps(hdc, BITSPIXEL); in DIB_SussScreenDepth()
423 ReleaseDC(SDL_Window, hdc); in DIB_SussScreenDepth()
429 HDC hdc; in DIB_SussScreenDepth()
[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 …]
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()
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()
/external/webkit/WebCore/platform/win/
DScrollbarThemeWin.cpp71 …ULT, WINAPI, (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, const RECT* pRect, const RECT* pC…
243 HDC hdc = context->getWindowsContext(rect, alphaBlend); in paintTrackPiece() local
246 DrawThemeBackground(scrollbarTheme, hdc, part, state, &themeRect, 0); in paintTrackPiece()
252 ::FillRect(hdc, &themeRect, HBRUSH(COLOR_SCROLLBAR+1)); in paintTrackPiece()
257 SaveDC(hdc); in paintTrackPiece()
258 ::SetTextColor(hdc, ::GetSysColor(COLOR_3DHILIGHT)); in paintTrackPiece()
259 ::SetBkColor(hdc, ::GetSysColor(COLOR_3DFACE)); in paintTrackPiece()
260 ::SetBrushOrgEx(hdc, rect.x(), rect.y(), NULL); in paintTrackPiece()
261 ::SelectObject(hdc, brush); in paintTrackPiece()
262 ::FillRect(hdc, &themeRect, brush); in paintTrackPiece()
[all …]
/external/webkit/WebCore/platform/wx/wxcode/win/
Dnon-kerned-drawing.cpp81 HDC hdc = 0; in drawTextWithSpacing() local
87 hdc = g->GetHDC(); in drawTextWithSpacing()
90 hdc = static_cast<HDC>(dc->GetHDC()); in drawTextWithSpacing()
107 ::SelectObject(hdc, GetHfontOf(*wxfont)); in drawTextWithSpacing()
110 ::SetTextColor(hdc, color.GetPixel()); in drawTextWithSpacing()
113 ::SetBkMode(hdc, TRANSPARENT); in drawTextWithSpacing()
117 ::ExtTextOut(hdc, x, y, 0, NULL, string.c_str(), string.length(), spacing); in drawTextWithSpacing()
119 ::SetBkMode(hdc, TRANSPARENT); in drawTextWithSpacing()
122 g->ReleaseHDC(hdc); in drawTextWithSpacing()
/external/webkit/WebCore/platform/graphics/chromium/
DFontCacheChromiumWin.cpp285 HDC hdc = GetDC(0); in fontContainsCharacter() local
286 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(hdc, hfont)); in fontContainsCharacter()
287 int count = GetFontUnicodeRanges(hdc, 0); in fontContainsCharacter()
289 count = GetFontUnicodeRanges(hdc, 0); in fontContainsCharacter()
292 SelectObject(hdc, oldFont); in fontContainsCharacter()
293 ReleaseDC(0, hdc); in fontContainsCharacter()
298 glyphsetBuffer.resize(GetFontUnicodeRanges(hdc, 0)); in fontContainsCharacter()
302 count = GetFontUnicodeRanges(hdc, glyphset); in fontContainsCharacter()
304 SelectObject(hdc, oldFont); in fontContainsCharacter()
305 ReleaseDC(0, hdc); in fontContainsCharacter()
[all …]
DFontChromiumWin.cpp294 HDC hdc() const { return m_hdc; } in hdc() function in WebCore::__anonf9ee309e0111::TransparencyAwareUniscribePainter
461 HDC hdc = painter.hdc(); in drawComplexText() local
462 if (!hdc) in drawComplexText()
468 SetTextColor(hdc, skia::SkColorToCOLORREF(color)); in drawComplexText()
469 SetBkMode(hdc, TRANSPARENT); in drawComplexText()
478 COLORREF savedTextColor = GetTextColor(hdc); in drawComplexText()
479 SetTextColor(hdc, textColor); in drawComplexText()
480 state.draw(graphicsContext, hdc, static_cast<int>(point.x()) + shadowSize.width(), in drawComplexText()
482 SetTextColor(hdc, savedTextColor); in drawComplexText()
487 state.draw(graphicsContext, hdc, static_cast<int>(point.x()), in drawComplexText()
/external/webkit/WebKit/win/
DWebNodeHighlight.cpp139 HDC hdc = ::CreateCompatibleDC(::GetDC(m_overlay)); in update() local
140 if (!hdc) in update()
153 OwnPtr<HBITMAP> hbmp(::CreateDIBSection(hdc, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0)); in update()
155 ::SelectObject(hdc, hbmp.get()); in update()
157 GraphicsContext context(hdc); in update()
175 … ::UpdateLayeredWindow(m_overlay, ::GetDC(0), &dstPoint, &size, hdc, &srcPoint, 0, &bf, ULW_ALPHA); in update()
177 ::DeleteDC(hdc); in update()
/external/webkit/WebCore/rendering/
DRenderThemeWin.cpp97 …ULT, WINAPI, (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, const RECT* pRect, const RECT* pC…
561 HDC hdc = context->getWindowsContext(r, alphaBlend); in drawControl() local
564 DrawThemeBackground(theme, hdc, themeData.m_part, themeData.m_state, &widgetRect, NULL); in drawControl()
567 ::DrawEdge(hdc, &widgetRect, EDGE_SUNKEN, BF_RECT | BF_ADJUST); in drawControl()
569 ::FillRect(hdc, &widgetRect, (HBRUSH)(COLOR_BTNFACE+1)); in drawControl()
571 ::FillRect(hdc, &widgetRect, (HBRUSH)(COLOR_WINDOW+1)); in drawControl()
573 ::DrawEdge(hdc, &widgetRect, EDGE_SUNKEN, BF_RECT | BF_ADJUST); in drawControl()
574 ::FillRect(hdc, &widgetRect, (HBRUSH)GetStockObject(GRAY_BRUSH)); in drawControl()
579 ::DrawEdge(hdc, &widgetRect, EDGE_RAISED, BF_RECT | BF_SOFT | BF_MIDDLE | BF_ADJUST); in drawControl()
585 COLORREF oldForeColor = ::SetTextColor(hdc, ::GetSysColor(COLOR_3DFACE)); in drawControl()
[all …]
DRenderThemeChromiumWin.cpp140 HDC hdc = GetDC(0); // What about printing? Is this the right DC? in systemFontSize() local
141 if (hdc) { in systemFontSize()
142 HGDIOBJ hObject = SelectObject(hdc, hFont); in systemFontSize()
144 GetTextMetrics(hdc, &tm); in systemFontSize()
145 SelectObject(hdc, hObject); in systemFontSize()
146 ReleaseDC(0, hdc); in systemFontSize()
171 HDC hdc = GetDC(0); // What about printing? Is this the right DC? in pointsToPixels() local
172 if (hdc) { // Can this ever actually be NULL? in pointsToPixels()
173 pixelsPerInch = GetDeviceCaps(hdc, LOGPIXELSY); in pointsToPixels()
174 ReleaseDC(0, hdc); in pointsToPixels()
/external/webkit/WebCore/platform/graphics/wince/
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/WebCore/page/win/
DFrameCGWin.cpp56 HDC hdc = CreateCompatibleDC(0); in imageFromRect() local
62 HBITMAP hbmpOld = static_cast<HBITMAP>(SelectObject(hdc, hbmp)); in imageFromRect()
74 SelectObject(hdc, hbmpOld); in imageFromRect()
75 DeleteDC(hdc); in imageFromRect()
/external/qemu/distrib/sdl-1.2.12/src/video/wincommon/
DSDL_wingl.c117 HDC hdc; in ChoosePixelFormatARB() local
129 hdc = GetDC(hwnd); in ChoosePixelFormatARB()
131 SetPixelFormat(hdc, ChoosePixelFormat(hdc, &GL_pfd), &GL_pfd); in ChoosePixelFormatARB()
133 hglrc = this->gl_data->wglCreateContext(hdc); in ChoosePixelFormatARB()
135 this->gl_data->wglMakeCurrent(hdc, hglrc); in ChoosePixelFormatARB()
142 extensions = wglGetExtensionsStringARB(hdc); in ChoosePixelFormatARB()
149 …BOOL (WINAPI *wglChoosePixelFormatARB)(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFLi… in ChoosePixelFormatARB()
154 wglChoosePixelFormatARB(hdc, iAttribs, fAttribs, 1, &pformat, &matches) && pformat ) { in ChoosePixelFormatARB()
163 ReleaseDC(hwnd, hdc); in ChoosePixelFormatARB()
/external/webkit/WebCore/plugins/win/
DPluginViewWin.cpp125 lpPaint->hdc = pluginView->m_wmPrintHDC; in hookedBeginPaint()
462 HDC hdc = context->getWindowsContext(frameRect(), false); in paintWindowedPluginIntoContext() local
465 GetWorldTransform(hdc, &originalTransform); in paintWindowedPluginIntoContext()
473 SetWorldTransform(hdc, &transform); in paintWindowedPluginIntoContext()
475 …SendMessage(platformPluginWidget(), WM_PRINTCLIENT, reinterpret_cast<WPARAM>(hdc), PRF_CLIENT | PR… in paintWindowedPluginIntoContext()
477 SetWorldTransform(hdc, &originalTransform); in paintWindowedPluginIntoContext()
479 context->releaseWindowsContext(hdc, frameRect(), false); in paintWindowedPluginIntoContext()
504 HDC hdc = context->getWindowsContext(rectInWindow, m_isTransparent); in paint() local
514 GetWorldTransform(hdc, &transform); in paint()
517 SetWorldTransform(hdc, &transform); in paint()
[all …]

123