Home
last modified time | relevance | path

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

1234

/external/mesa3d/src/gallium/frontends/wgl/
Dstw_wgl.c68 HDC hdc ) in wglCreateContext() argument
71 return (HGLRC)(UINT_PTR)DrvCreateContext(hdc); in wglCreateContext()
76 HDC hdc, in wglCreateLayerContext() argument
80 return (HGLRC)(UINT_PTR)DrvCreateLayerContext( hdc, iLayerPlane ); in wglCreateLayerContext()
112 HDC hdc, in wglMakeCurrent() argument
115 return DrvSetContext( hdc, (DHGLRC)(UINT_PTR)hglrc, NULL ) ? TRUE : FALSE; in wglMakeCurrent()
121 HDC hdc ) in wglSwapBuffers() argument
123 return DrvSwapBuffers( hdc ); in wglSwapBuffers()
134 wglSwapBuffers(ps->hdc); in wglSwapMultipleBuffers()
142 HDC hdc, in wglSwapLayerBuffers() argument
[all …]
Dstw_framebuffer.c253 stw_framebuffer_create(HDC hdc, int iPixelFormat) in stw_framebuffer_create() argument
260 hWnd = WindowFromDC( hdc ); in stw_framebuffer_create()
373 stw_framebuffer_from_hdc_locked(HDC hdc) in stw_framebuffer_from_hdc_locked() argument
377 hwnd = WindowFromDC(hdc); in stw_framebuffer_from_hdc_locked()
391 stw_framebuffer_from_hdc(HDC hdc) in stw_framebuffer_from_hdc() argument
399 fb = stw_framebuffer_from_hdc_locked(hdc); in stw_framebuffer_from_hdc()
424 DrvSetPixelFormat(HDC hdc, LONG iPixelFormat) in DrvSetPixelFormat() argument
438 fb = stw_framebuffer_from_hdc_locked(hdc); in DrvSetPixelFormat()
451 fb = stw_framebuffer_create(hdc, iPixelFormat); in DrvSetPixelFormat()
461 if (GetPixelFormat(hdc) == 0) { in DrvSetPixelFormat()
[all …]
Dstw_wgl.h42 wglSwapBuffers(HDC hdc);
45 wglChoosePixelFormat(HDC hdc,
49 wglDescribePixelFormat(HDC hdc,
55 wglGetPixelFormat(HDC hdc);
58 wglSetPixelFormat(HDC hdc,
76 HDC hdc; member
Dstw_context.c120 DrvCreateContext(HDC hdc) in DrvCreateContext() argument
122 return DrvCreateLayerContext( hdc, 0 ); in DrvCreateContext()
127 DrvCreateLayerContext(HDC hdc, INT iLayerPlane) in DrvCreateLayerContext() argument
129 return stw_create_context_attribs(hdc, iLayerPlane, 0, 1, 0, 0, in DrvCreateLayerContext()
141 get_matching_pixel_format(HDC hdc) in get_matching_pixel_format() argument
143 int iPixelFormat = GetPixelFormat(hdc); in get_matching_pixel_format()
148 if (!DescribePixelFormat(hdc, iPixelFormat, sizeof(pfd), &pfd)) in get_matching_pixel_format()
150 return stw_pixelformat_choose(hdc, &pfd); in get_matching_pixel_format()
162 stw_create_context_attribs(HDC hdc, INT iLayerPlane, DHGLRC hShareContext, in stw_create_context_attribs() argument
187 fb = stw_framebuffer_from_hdc( hdc ); in stw_create_context_attribs()
[all …]
/external/cronet/third_party/icu/source/samples/layout/
DGDIFontInstance.cpp119 HDC hdc = surface->getHDC(); in GDIFontInstance() local
125 SaveDC(hdc); in GDIFontInstance()
127 SetGraphicsMode(hdc, GM_ADVANCED); in GDIFontInstance()
128 ModifyWorldTransform(hdc, NULL, MWT_IDENTITY); in GDIFontInstance()
129 SetViewportOrgEx(hdc, 0, 0, NULL); in GDIFontInstance()
130 SetWindowOrgEx(hdc, 0, 0, NULL); in GDIFontInstance()
132 dpiX = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSX); in GDIFontInstance()
133 dpiY = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSY); in GDIFontInstance()
139 DPtoLP(hdc, &pt, 1); in GDIFontInstance()
167 SelectObject(hdc, fFont); in GDIFontInstance()
[all …]
Dclayout.c127 HDC hdc; in WndProc() local
140 hdc = GetDC(hwnd); in WndProc()
142 surface = rs_gdiRenderingSurfaceOpen(hdc); in WndProc()
148 ReleaseDC(hwnd, hdc); in WndProc()
161 ReleaseDC(hwnd, hdc); in WndProc()
242 hdc = BeginPaint(hwnd, &ps); in WndProc()
243 SetBkMode(hdc, TRANSPARENT); in WndProc()
254 rs_gdiRenderingSurfaceSetHDC(surface, hdc); in WndProc()
303 hdc = GetDC(hwnd); in WndProc()
304 rs_gdiRenderingSurfaceSetHDC(surface, hdc); in WndProc()
Dlayout.cpp125 HDC hdc; in WndProc() local
138 hdc = GetDC(hwnd); in WndProc()
139 surface = new GDISurface(hdc); in WndProc()
145 ReleaseDC(hwnd, hdc); in WndProc()
158 ReleaseDC(hwnd, hdc); in WndProc()
239 hdc = BeginPaint(hwnd, &ps); in WndProc()
240 SetBkMode(hdc, TRANSPARENT); in WndProc()
251 surface->setHDC(hdc); in WndProc()
298 hdc = GetDC(hwnd); in WndProc()
299 surface->setHDC(hdc); in WndProc()
Dgdiglue.cpp40 rs_surface *rs_gdiRenderingSurfaceOpen(HDC hdc) in rs_gdiRenderingSurfaceOpen() argument
42 return (rs_surface *) new GDISurface(hdc); in rs_gdiRenderingSurfaceOpen()
45 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) in rs_gdiRenderingSurfaceSetHDC() argument
49 rs->setHDC(hdc); in rs_gdiRenderingSurfaceSetHDC()
/external/icu/icu4c/source/samples/layout/
DGDIFontInstance.cpp119 HDC hdc = surface->getHDC(); in GDIFontInstance() local
125 SaveDC(hdc); in GDIFontInstance()
127 SetGraphicsMode(hdc, GM_ADVANCED); in GDIFontInstance()
128 ModifyWorldTransform(hdc, NULL, MWT_IDENTITY); in GDIFontInstance()
129 SetViewportOrgEx(hdc, 0, 0, NULL); in GDIFontInstance()
130 SetWindowOrgEx(hdc, 0, 0, NULL); in GDIFontInstance()
132 dpiX = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSX); in GDIFontInstance()
133 dpiY = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSY); in GDIFontInstance()
139 DPtoLP(hdc, &pt, 1); in GDIFontInstance()
167 SelectObject(hdc, fFont); in GDIFontInstance()
[all …]
Dclayout.c127 HDC hdc; in WndProc() local
140 hdc = GetDC(hwnd); in WndProc()
142 surface = rs_gdiRenderingSurfaceOpen(hdc); in WndProc()
148 ReleaseDC(hwnd, hdc); in WndProc()
161 ReleaseDC(hwnd, hdc); in WndProc()
242 hdc = BeginPaint(hwnd, &ps); in WndProc()
243 SetBkMode(hdc, TRANSPARENT); in WndProc()
254 rs_gdiRenderingSurfaceSetHDC(surface, hdc); in WndProc()
303 hdc = GetDC(hwnd); in WndProc()
304 rs_gdiRenderingSurfaceSetHDC(surface, hdc); in WndProc()
Dlayout.cpp125 HDC hdc; in WndProc() local
138 hdc = GetDC(hwnd); in WndProc()
139 surface = new GDISurface(hdc); in WndProc()
145 ReleaseDC(hwnd, hdc); in WndProc()
158 ReleaseDC(hwnd, hdc); in WndProc()
239 hdc = BeginPaint(hwnd, &ps); in WndProc()
240 SetBkMode(hdc, TRANSPARENT); in WndProc()
251 surface->setHDC(hdc); in WndProc()
298 hdc = GetDC(hwnd); in WndProc()
299 surface->setHDC(hdc); in WndProc()
Dgdiglue.cpp40 rs_surface *rs_gdiRenderingSurfaceOpen(HDC hdc) in rs_gdiRenderingSurfaceOpen() argument
42 return (rs_surface *) new GDISurface(hdc); in rs_gdiRenderingSurfaceOpen()
45 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) in rs_gdiRenderingSurfaceSetHDC() argument
49 rs->setHDC(hdc); in rs_gdiRenderingSurfaceSetHDC()
/external/libepoxy/test/
Dwgl_per_context_funcptrs.c90 test_createshader(HDC hdc, HGLRC ctx) in test_createshader() argument
95 wglMakeCurrent(hdc, ctx); in test_createshader()
121 test_function(HDC hdc) in test_function() argument
123 ctx1 = wglCreateContext(hdc); in test_function()
124 ctx2 = wglCreateContext(hdc); in test_function()
130 if (!wglMakeCurrent(hdc, ctx1)) { in test_function()
144 test_createshader(hdc, ctx1); in test_function()
145 test_createshader(hdc, ctx1); in test_function()
146 test_createshader(hdc, ctx2); in test_function()
147 test_createshader(hdc, ctx2); in test_function()
[all …]
Dwgl_common.c28 static int (*test_callback)(HDC hdc);
31 setup_pixel_format(HDC hdc) in setup_pixel_format() argument
55 pixel_format = ChoosePixelFormat(hdc, &pfd); in setup_pixel_format()
61 if (SetPixelFormat(hdc, pixel_format, &pfd) != TRUE) { in setup_pixel_format()
70 HDC hdc = GetDC(hwnd); in window_proc() local
75 setup_pixel_format(hdc); in window_proc()
76 ret = test_callback(hdc); in window_proc()
77 ReleaseDC(hwnd, hdc); in window_proc()
86 make_window_and_test(int (*callback)(HDC hdc)) in make_window_and_test() argument
Dwgl_usefontbitmaps.c30 test_function(HDC hdc) in test_function() argument
37 ctx = wglCreateContext(hdc); in test_function()
42 if (!wglMakeCurrent(hdc, ctx)) { in test_function()
48 wglUseFontBitmaps(hdc, 0, 255, dlist[0]); in test_function()
54 wglUseFontBitmapsW(hdc, 0, 255, dlist[0]); in test_function()
56 wglUseFontBitmapsA(hdc, 0, 255, dlist[0]); in test_function()
/external/mesa3d/src/glx/windows/
Dwindowsgl.c102 HDC hdc = GetDC(hwnd); in windows_create_context() local
106 SetPixelFormat(hdc, gc->pxfi, NULL); in windows_create_context()
108 gc->ctx = wglCreateContext(hdc); in windows_create_context()
113 ReleaseDC(hwnd, hdc); in windows_create_context()
163 HDC hdc = GetDC(hwnd); in windows_create_context_attribs() local
170 SetPixelFormat(hdc, gc->pxfi, NULL); in windows_create_context_attribs()
172 gc->ctx = wglCreateContextAttribsARB(hdc, shareContext, attribList); in windows_create_context_attribs()
174 ReleaseDC(hwnd, hdc); in windows_create_context_attribs()
317 HDC hdc = GetDC(hwnd); in windows_call_with_context() local
320 SetPixelFormat(hdc, 1, NULL); in windows_call_with_context()
[all …]
/external/harfbuzz_ng/src/
Dhb-gdi.cc47 HDC hdc = GetDC (nullptr); in _hb_gdi_reference_table() local
48 if (unlikely (!SelectObject (hdc, (HFONT) user_data))) goto fail; in _hb_gdi_reference_table()
50 length = GetFontData (hdc, hb_uint32_swap (tag), 0, buffer, length); in _hb_gdi_reference_table()
55 length = GetFontData (hdc, hb_uint32_swap (tag), 0, buffer, length); in _hb_gdi_reference_table()
57 ReleaseDC (nullptr, hdc); in _hb_gdi_reference_table()
64 ReleaseDC (nullptr, hdc); in _hb_gdi_reference_table()
/external/libepoxy/src/
Ddispatch_wgl.c41 HDC hdc = wglGetCurrentDC(); in epoxy_conservative_has_wgl_extension() local
43 if (!hdc) in epoxy_conservative_has_wgl_extension()
46 return epoxy_has_wgl_extension(hdc, ext); in epoxy_conservative_has_wgl_extension()
50 epoxy_has_wgl_extension(HDC hdc, const char *ext) in epoxy_has_wgl_extension() argument
62 return epoxy_extension_in_string(getext(hdc), ext); in epoxy_has_wgl_extension()
145 WRAPPER(epoxy_wglMakeCurrent)(HDC hdc, HGLRC hglrc) in WRAPPER()
147 BOOL ret = epoxy_wglMakeCurrent_unwrapped(hdc, hglrc); in WRAPPER()
/external/skia/gm/
Drasterhandleallocator.cpp168 HDC hdc = (HDC)fCanvas->accessTopRasterHandle(); in drawRect() local
172 FillRect(hdc, &rounded, CreateSolidBrush(cr)); in drawRect()
206 HDC hdc = CreateCompatibleDC(nullptr); in Create() local
207 if (!hdc) { in Create()
211 SetGraphicsMode(hdc, GM_ADVANCED); in Create()
212 HGDIOBJ origBitmap = SelectObject(hdc, hbitmap); in Create()
215 HDC hdc; in Create() member
220 HBITMAP hbitmap = static_cast<HBITMAP>(SelectObject(ctx->hdc, ctx->hbitmap)); in Create()
222 DeleteDC(ctx->hdc); in Create()
225 rec->fReleaseCtx = new ReleaseContext{hdc, origBitmap}; in Create()
[all …]
/external/angle/include/WGL/
Dwgl.h89 typedef int (WINAPI * PFNDESCRIBEPIXELFORMATPROC) (HDC hdc, int ipfd, UINT cjpfd, const PIXELFORMAT…
91 typedef int (WINAPI * PFNGETPIXELFORMATPROC) (HDC hdc);
92 typedef BOOL (WINAPI * PFNSETPIXELFORMATPROC) (HDC hdc, int ipfd, const PIXELFORMATDESCRIPTOR *ppfd…
93 typedef BOOL (WINAPI * PFNSWAPBUFFERSPROC) (HDC hdc);
101 typedef int (WINAPI * PFNWGLGETLAYERPALETTEENTRIESPROC) (HDC hdc, int iLayerPlane, int iStart, int …
104 typedef BOOL (WINAPI * PFNWGLREALIZELAYERPALETTEPROC) (HDC hdc, int iLayerPlane, BOOL bRealize);
105 typedef int (WINAPI * PFNWGLSETLAYERPALETTEENTRIESPROC) (HDC hdc, int iLayerPlane, int iStart, int …
107 typedef BOOL (WINAPI * PFNWGLSWAPLAYERBUFFERSPROC) (HDC hdc, UINT fuFlags);
116 int WINAPI DescribePixelFormat (HDC hdc, int ipfd, UINT cjpfd, const PIXELFORMATDESCRIPTOR *ppfd);
118 int WINAPI GetPixelFormat (HDC hdc);
[all …]
/external/angle/src/libGLESv2/
Dentry_points_wgl.h25 int GL_APIENTRY wglDescribePixelFormat(HDC hdc, int ipfd, UINT cjpfd, PIXELFORMATDESCRIPTOR *ppfd);
31 int GL_APIENTRY wglGetPixelFormat(HDC hdc);
33 BOOL GL_APIENTRY wglSetPixelFormat(HDC hdc, int ipfd, const PIXELFORMATDESCRIPTOR *ppfd);
35 BOOL GL_APIENTRY wglSwapBuffers(HDC hdc);
/external/skia/src/ports/
DSkFontHost_win.cpp161 static unsigned calculateGlyphCount(HDC hdc, const LOGFONT& lf) { in calculateGlyphCount() argument
163 if (0 == GetTextMetrics(hdc, &textMetric)) { in calculateGlyphCount()
166 GetTextMetrics(hdc, &textMetric); in calculateGlyphCount()
175 if (GDI_ERROR != GetFontData(hdc, SkOTTableMaximumProfile::TAG, 4, &glyphs, sizeof(glyphs))) { in calculateGlyphCount()
186 if (GetGlyphOutlineW(hdc, mid, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0, in calculateGlyphCount()
197 static unsigned calculateUPEM(HDC hdc, const LOGFONT& lf) { in calculateUPEM() argument
199 if (0 == GetTextMetrics(hdc, &textMetric)) { in calculateUPEM()
202 GetTextMetrics(hdc, &textMetric); in calculateUPEM()
210 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
213 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
[all …]
/external/cronet/components/metrics/ui/
Dscreen_info_metrics_provider.cc30 BOOL CALLBACK GetMonitorDPICallback(HMONITOR, HDC hdc, LPRECT, LPARAM dwData) { in GetMonitorDPICallback() argument
35 DWORD size_x = GetDeviceCaps(hdc, HORZSIZE); in GetMonitorDPICallback()
36 DWORD size_y = GetDeviceCaps(hdc, VERTSIZE); in GetMonitorDPICallback()
38 GetDeviceCaps(hdc, HORZRES) / (size_x / kMillimetersPerInch) : 0; in GetMonitorDPICallback()
40 GetDeviceCaps(hdc, VERTRES) / (size_y / kMillimetersPerInch) : 0; in GetMonitorDPICallback()
/external/mesa3d/include/GL/
Dwglext.h116 typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
118 const char *WINAPI wglGetExtensionsStringARB (HDC hdc);
221 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerP…
222 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerP…
223 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FL…
225 BOOL WINAPI wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttribu…
226 BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttribu…
227 BOOL WINAPI wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList,…
491 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerP…
492 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerP…
[all …]
/external/angle/src/third_party/khronos/GL/
Dwglext.h113 typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
115 const char *WINAPI wglGetExtensionsStringARB (HDC hdc);
218 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerP…
219 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerP…
220 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FL…
222 BOOL WINAPI wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttribu…
223 BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttribu…
224 BOOL WINAPI wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList,…
476 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerP…
477 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerP…
[all …]

1234