Home
last modified time | relevance | path

Searched refs:win (Results 1 – 25 of 30) sorted by relevance

12

/development/tools/emulator/opengl/tests/ut_renderer/
DX11Windowing.cpp38 get_window_pos( Display *disp, Window win, int *px, int *py ) in get_window_pos() argument
42 XTranslateCoordinates( disp, win, DefaultRootWindow(disp), 0, 0, px, py, &child ); in get_window_pos()
47 set_window_pos(Display *disp, Window win, int x, int y) in set_window_pos() argument
67 XMoveWindow(disp, win, x + xAdjust, y + yAdjust); in set_window_pos()
69 get_window_pos(disp, win, &xNew, &yNew); in set_window_pos()
75 XMoveWindow(disp, win, x + xAdjust, y + yAdjust ); in set_window_pos()
110 Window win = XCreateWindow( dpy, in createNativeWindow() local
116 XMapWindow(dpy, win); in createNativeWindow()
118 set_window_pos(dpy, win, X11_wmXPos, X11_wmYPos); in createNativeWindow()
119 return NativeWindowType(win); in createNativeWindow()
[all …]
DX11RendererSurface.cpp26 int X11RendererSurface::destoryNativeWindow(NativeWindowType win) in destoryNativeWindow() argument
30 Window x11Window = (Window)(win); in destoryNativeWindow()
59 Window win = XCreateWindow( m_display, in createNativeWindow() local
65 XMapWindow(m_display, win); in createNativeWindow()
67 return NativeWindowType(win); in createNativeWindow()
DX11Windowing.h24 int destroyNativeWindow(NativeDisplayType dpy, NativeWindowType win);
DNativeWindowing.h25 virtual int destroyNativeWindow(NativeDisplayType dpy, NativeWindowType win) = 0;
DX11RendererSurface.h33 int destroyNativeWindow(NativeWindowType win);
/development/tools/emulator/opengl/host/libs/Translator/EGL/
DEglWindowSurface.cpp21 bool EglWindowSurface::alreadyAssociatedWithConfig(EGLNativeWindowType win) { in alreadyAssociatedWithConfig() argument
22 return s_associatedWins.find(win) != s_associatedWins.end(); in alreadyAssociatedWithConfig()
27 EGLNativeWindowType win, in EglWindowSurface() argument
31 m_win(win) in EglWindowSurface()
33 s_associatedWins.insert(win); in EglWindowSurface()
34 m_native = EglOS::createWindowSurface(win); in EglWindowSurface()
DEglOsApi.h40 bool validNativeWin(EGLNativeInternalDisplayType dpy,EGLNativeSurfaceType win);
41 bool validNativeWin(EGLNativeInternalDisplayType dpy,EGLNativeWindowType win);
43 …bool checkWindowPixelFormatMatch(EGLNativeInternalDisplayType dpy,EGLNativeWindowType win,EglConfi…
47 void swapInterval(EGLNativeInternalDisplayType dpy,EGLNativeSurfaceType win,int interval);
DEglWindowSurface.h28 …EglWindowSurface(EglDisplay *dpy, EGLNativeWindowType win,EglConfig* config,unsigned width,unsigne…
32 static bool alreadyAssociatedWithConfig(EGLNativeWindowType win);
DEglMacApi.cpp106 bool validNativeWin(EGLNativeDisplayType dpy, EGLNativeWindowType win) { in validNativeWin() argument
108 return nsGetWinDims(win,&width,&height); in validNativeWin()
111 bool validNativeWin(EGLNativeDisplayType dpy, EGLNativeSurfaceType win) { in validNativeWin() argument
112 return validNativeWin(dpy,(EGLNativeWindowType)win); in validNativeWin()
121 bool checkWindowPixelFormatMatch(EGLNativeDisplayType dpy,EGLNativeWindowType win,EglConfig* cfg,un… in checkWindowPixelFormatMatch() argument
123 bool ret = nsGetWinDims(win,width,height); in checkWindowPixelFormatMatch()
128 bool match = nsCheckColor(win,r + g + b); in checkWindowPixelFormatMatch()
201 void swapInterval(EGLNativeDisplayType dpy,EGLNativeSurfaceType win,int interval){ in swapInterval() argument
DMacNative.h45 bool nsGetWinDims(void* win,unsigned int* width,unsigned int* height);
46 bool nsCheckColor(void* win,int colorSize);
DEglX11Api.cpp174 bool validNativeWin(EGLNativeDisplayType dpy,EGLNativeWindowType win) { in validNativeWin() argument
179 if(!XGetGeometry(dpy,win,&root,&tmp,&tmp,&utmp,&utmp,&utmp,&utmp)) return false; in validNativeWin()
183 bool validNativeWin(EGLNativeDisplayType dpy,EGLNativeSurfaceType win) { in validNativeWin() argument
184 if (!win) return false; in validNativeWin()
185 return validNativeWin(dpy,win->srfc()); in validNativeWin()
197 bool checkWindowPixelFormatMatch(EGLNativeDisplayType dpy,EGLNativeWindowType win,EglConfig* cfg,un… in checkWindowPixelFormatMatch() argument
206 if(!XGetGeometry(dpy,win,&root,&x,&y,width,height,&border,&depth)) return false; in checkWindowPixelFormatMatch()
278 void swapInterval(EGLNativeDisplayType dpy,EGLNativeSurfaceType win,int interval){ in swapInterval() argument
286 if(glXSwapIntervalEXT && win) { in swapInterval()
287 glXSwapIntervalEXT(dpy,win->srfc(),interval); in swapInterval()
DMacNative.m104 NSView* win = (NSView *)nativeWin;
107 } else if (win != nil) {
109 [ctx setView: win];
152 bool nsGetWinDims(void* win,unsigned int* width,unsigned int* height){
153 NSView* view = (NSView*)win;
163 bool nsCheckColor(void* win,int colorSize){
164 NSView* view = (NSView*)win;
DEglWindowsApi.cpp429 bool validNativeWin(EGLNativeInternalDisplayType dpy,EGLNativeWindowType win) { in validNativeWin() argument
430 return IsWindow(win); in validNativeWin()
433 bool validNativeWin(EGLNativeInternalDisplayType dpy,EGLNativeSurfaceType win) { in validNativeWin() argument
434 if (!win) return false; in validNativeWin()
435 return validNativeWin(dpy,win->getHwnd()); in validNativeWin()
444 bool checkWindowPixelFormatMatch(EGLNativeInternalDisplayType dpy,EGLNativeWindowType win,EglConfig… in checkWindowPixelFormatMatch() argument
446 if(!GetClientRect(win,&r)) return false; in checkWindowPixelFormatMatch()
449 HDC dc = GetDC(win); in checkWindowPixelFormatMatch()
572 void swapInterval(EGLNativeInternalDisplayType dpy,EGLNativeSurfaceType win,int interval) { in swapInterval() argument
DEglImp.cpp481 EGLNativeWindowType win, in eglCreateWindowSurface() argument
489 if(!EglOS::validNativeWin(dpy->nativeType(),win)) { in eglCreateWindowSurface()
495 if(EglWindowSurface::alreadyAssociatedWithConfig(win)) { in eglCreateWindowSurface()
500 if(!EglOS::checkWindowPixelFormatMatch(dpy->nativeType(),win,cfg,&width,&height)) { in eglCreateWindowSurface()
503 SurfacePtr wSurface(new EglWindowSurface(dpy, win,cfg,width,height)); in eglCreateWindowSurface()
/development/tools/emulator/opengl/host/libs/libOpenglRender/
DNativeLinuxSubWindow.cpp39 …Window win = XCreateWindow(*display_out,p_window,x,y, width,height,0,CopyFromParent,CopyFromParent… in createSubWindow() local
40 XMapWindow(*display_out,win); in createSubWindow()
42 XIfEvent(*display_out, &e, WaitForMapNotify, (char *)win); in createSubWindow()
43 return win; in createSubWindow()
46 void destroySubWindow(EGLNativeDisplayType dis,EGLNativeWindowType win){ in destroySubWindow() argument
47 XDestroyWindow(dis, win); in destroySubWindow()
DNativeMacSubWindow.m42 NSWindow *win = (NSWindow *)p_window;
43 [[win contentView] addSubview:glView];
44 [win makeKeyAndOrderFront:nil];
50 void destroySubWindow(EGLNativeDisplayType dis,EGLNativeWindowType win){
51 if(win){
52 NSView *glView = (NSView *)win;
DWindowSurface.cpp55 WindowSurface *win = new WindowSurface(); in create() local
56 if (!win) { in create()
59 win->m_fbconf = fbconf; in create()
68 if (!win->resizePbuffer(p_width, p_height)) { in create()
69 delete win; in create()
73 win->m_width = p_width; in create()
74 win->m_height = p_height; in create()
76 return win; in create()
DNativeWindowsSubWindow.cpp55 void destroySubWindow(EGLNativeDisplayType dis,EGLNativeWindowType win){ in destroySubWindow() argument
56 PostMessage(win, WM_CLOSE, 0, 0); in destroySubWindow()
DNativeSubWindow.h31 void destroySubWindow(EGLNativeDisplayType dis,EGLNativeWindowType win);
DFrameBuffer.cpp494 WindowSurfacePtr win( WindowSurface::create(p_config, p_width, p_height) ); in createWindowSurface() local
495 if (win.Ptr() != NULL) { in createWindowSurface()
497 m_windows[ret] = win; in createWindowSurface()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DProjector.java41 public void project(float[] obj, int objOffset, float[] win, int winOffset) { in project() argument
51 win[winOffset] = mX + mViewWidth * (mV[0] * rw + 1.0f) * 0.5f; in project()
52 win[winOffset + 1] = mY + mViewHeight * (mV[1] * rw + 1.0f) * 0.5f; in project()
53 win[winOffset + 2] = (mV[2] * rw + 1.0f) * 0.5f; in project()
/development/tools/emulator/opengl/tests/translator_tests/MacCommon/
Dsetup_gl.m13 NSWindow *win = (NSWindow *)nsWindowPtr;
14 [[win contentView] addSubview:glView];
15 [win makeKeyAndOrderFront:nil];
/development/ide/xcode/ports/
DSkOSWindow_Mac.cpp193 SkOSWindow* win = (SkOSWindow*)userData; in EventHandler() local
198 gCurrOSWin = win; // will need to be in TLS. Set this so PostEvent will work in EventHandler()
204 SetPortWindowPort((WindowRef)win->getHWND()); in EventHandler()
209 (void)win->handleClick(pt.h, pt.v, Click::kDown_State); in EventHandler()
212 (void)win->handleClick(pt.h, pt.v, Click::kMoved_State); in EventHandler()
215 (void)win->handleClick(pt.h, pt.v, Click::kUp_State); in EventHandler()
228 (void)win->handleKey(key); in EventHandler()
234 (void)win->handleKeyUp(key); in EventHandler()
241 win->handleChar(uni); in EventHandler()
247 win->updateSize(); in EventHandler()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DOverscanActivity.java113 Window win = getWindow(); in setFullscreen() local
114 WindowManager.LayoutParams winParams = win.getAttributes(); in setFullscreen()
121 win.setAttributes(winParams); in setFullscreen()
157 Window win = getWindow(); in onCreate() local
158 WindowManager.LayoutParams winParams = win.getAttributes(); in onCreate()
160 win.setAttributes(winParams); in onCreate()
/development/tools/emulator/opengl/tests/EGL_host_wrapper/
Degl.cpp104 EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const … in eglCreateWindowSurface() argument
106 return getDispatch()->eglCreateWindowSurface(dpy, config, win, attrib_list); in eglCreateWindowSurface()

12