Home
last modified time | relevance | path

Searched refs:fWindow (Results 1 – 25 of 52) sorted by relevance

123

/external/skqp/example/
DHelloWorld.cpp27 fWindow = Window::CreateNativeWindow(platformData); in HelloWorld()
28 fWindow->setRequestedDisplayParams(DisplayParams()); in HelloWorld()
31 fWindow->pushLayer(this); in HelloWorld()
33 fWindow->attach(fBackendType); in HelloWorld()
37 fWindow->detach(); in ~HelloWorld()
38 delete fWindow; in ~HelloWorld()
42 if (!fWindow || fWindow->sampleCount() <= 1) { in updateTitle()
48 fWindow->setTitle(title.c_str()); in updateTitle()
53 fWindow->show(); in onBackendCreated()
54 fWindow->inval(); in onBackendCreated()
[all …]
/external/skia/example/
DHelloWorld.cpp27 fWindow = Window::CreateNativeWindow(platformData); in HelloWorld()
28 fWindow->setRequestedDisplayParams(DisplayParams()); in HelloWorld()
31 fWindow->pushLayer(this); in HelloWorld()
33 fWindow->attach(fBackendType); in HelloWorld()
37 fWindow->detach(); in ~HelloWorld()
38 delete fWindow; in ~HelloWorld()
42 if (!fWindow || fWindow->sampleCount() <= 1) { in updateTitle()
48 fWindow->setTitle(title.c_str()); in updateTitle()
53 fWindow->show(); in onBackendCreated()
54 fWindow->inval(); in onBackendCreated()
[all …]
/external/skqp/tools/sk_app/mac/
DWindow_mac.mm49 if (fWindow) {
60 fWindow = [[NSWindow alloc] initWithContentRect:windowRect styleMask:windowStyle
62 if (nil == fWindow) {
66 [fWindow setDelegate:delegate];
72 [fWindow release];
73 fWindow = nil;
78 [fWindow setContentView:view];
84 [fWindow release];
85 fWindow = nil;
90 [fWindow setTitle:titleString];
[all …]
DWindow_mac.h21 , fWindow(nil) in Window_mac()
36 NSView* view() { return [fWindow contentView]; } in view()
40 NSWindow* fWindow;
/external/skqp/tools/viewer/
DViewer.cpp226 fWindow = Window::CreateNativeWindow(platformData);
231 fWindow->setRequestedDisplayParams(displayParams);
240 fCommands.attach(fWindow);
241 fWindow->pushLayer(this);
242 fWindow->pushLayer(&fStatsLayer);
243 fWindow->pushLayer(&fImGuiLayer);
248 fWindow->inval(); in __anon567afbe30102()
254 fWindow->inval(); in __anon567afbe30202()
260 fWindow->inval(); in __anon567afbe30302()
264 fWindow->inval(); in __anon567afbe30402()
[all …]
/external/skia/tools/viewer/
DViewer.cpp247 fWindow = Window::CreateNativeWindow(platformData);
252 fWindow->setRequestedDisplayParams(displayParams);
261 fCommands.attach(fWindow);
262 fWindow->pushLayer(this);
263 fWindow->pushLayer(&fStatsLayer);
264 fWindow->pushLayer(&fImGuiLayer);
269 fWindow->inval(); in __anonc7f885cc0102()
275 fWindow->inval(); in __anonc7f885cc0202()
281 fWindow->inval(); in __anonc7f885cc0302()
285 fWindow->inval(); in __anonc7f885cc0402()
[all …]
/external/skia/tools/sk_app/mac/
DWindow_mac.mm45 if (fWindow) {
56 fWindow = [[NSWindow alloc] initWithContentRect:windowRect styleMask:windowStyle
58 if (nil == fWindow) {
61 [fWindow setAcceptsMouseMovedEvents:YES];
64 [fWindow setDelegate:delegate];
70 [fWindow release];
71 fWindow = nil;
76 [fWindow setContentView:view];
78 fWindowNumber = fWindow.windowNumber;
85 if (nil != fWindow) {
[all …]
/external/skqp/tools/gpu/gl/win/
DCreatePlatformGLTestContext_win.cpp48 HWND fWindow; member in __anon1be1d5e80111::WinGLTestContext
58 : fWindow(nullptr) in WinGLTestContext()
84 if (!(fWindow = CreateWindow(TEXT("Griffin"), in WinGLTestContext()
94 if (!(fDeviceContext = GetDC(fWindow))) { in WinGLTestContext()
124 ReleaseDC(fWindow, fDeviceContext); in WinGLTestContext()
126 DestroyWindow(fWindow); in WinGLTestContext()
127 fWindow = 0; in WinGLTestContext()
167 if (fWindow && fDeviceContext) { in destroyGLContext()
168 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext()
171 if (fWindow) { in destroyGLContext()
[all …]
/external/skia/tools/gpu/gl/win/
DCreatePlatformGLTestContext_win.cpp48 HWND fWindow; member in __anonc91c64710111::WinGLTestContext
58 : fWindow(nullptr) in WinGLTestContext()
84 if (!(fWindow = CreateWindow(TEXT("Griffin"), in WinGLTestContext()
94 if (!(fDeviceContext = GetDC(fWindow))) { in WinGLTestContext()
124 ReleaseDC(fWindow, fDeviceContext); in WinGLTestContext()
126 DestroyWindow(fWindow); in WinGLTestContext()
127 fWindow = 0; in WinGLTestContext()
167 if (fWindow && fDeviceContext) { in destroyGLContext()
168 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext()
171 if (fWindow) { in destroyGLContext()
[all …]
/external/skia/tools/sk_app/ios/
DGLWindowContext_ios.cpp33 SDL_Window* fWindow; member in __anon8447b5da0111::GLWindowContext_ios
41 , fWindow(info.fWindow) in GLWindowContext_ios()
54 SkASSERT(fWindow); in onInitializeContext()
57 if (0 == SDL_GL_MakeCurrent(fWindow, fGLContext)) { in onInitializeContext()
67 SDL_GL_GetDrawableSize(fWindow, &fWidth, &fHeight); in onInitializeContext()
76 if (fWindow && fGLContext) { in onSwapBuffers()
77 SDL_GL_SwapWindow(fWindow); in onSwapBuffers()
DRasterWindowContext_ios.cpp45 SDL_Window* fWindow; member in __anon297d3d980111::RasterWindowContext_ios
55 , fWindow(info.fWindow) in RasterWindowContext_ios()
68 SkASSERT(fWindow); in onInitializeContext()
71 if (0 == SDL_GL_MakeCurrent(fWindow, fGLContext)) { in onInitializeContext()
81 SDL_GL_GetDrawableSize(fWindow, &fWidth, &fHeight); in onInitializeContext()
101 if (fWindow && fGLContext) { in onSwapBuffers()
110 SDL_GL_SwapWindow(fWindow); in onSwapBuffers()
DWindow_ios.cpp32 if (fWindow) { in initWindow()
61 fWindow = SDL_CreateWindow("SDL Window", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, in initWindow()
64 if (!fWindow) { in initWindow()
71 fWindowID = SDL_GetWindowID(fWindow); in initWindow()
74 fGLContext = SDL_GL_CreateContext(fWindow); in initWindow()
90 if (fWindow) { in closeWindow()
92 SDL_DestroyWindow(fWindow); in closeWindow()
94 fWindow = nullptr; in closeWindow()
249 SDL_SetWindowTitle(fWindow, title); in setTitle()
253 SDL_ShowWindow(fWindow); in show()
[all …]
/external/skqp/tools/sk_app/ios/
DGLWindowContext_ios.cpp33 SDL_Window* fWindow; member in __anonbec1fcd10111::GLWindowContext_ios
41 , fWindow(info.fWindow) in GLWindowContext_ios()
54 SkASSERT(fWindow); in onInitializeContext()
57 if (0 == SDL_GL_MakeCurrent(fWindow, fGLContext)) { in onInitializeContext()
67 SDL_GL_GetDrawableSize(fWindow, &fWidth, &fHeight); in onInitializeContext()
76 if (fWindow && fGLContext) { in onSwapBuffers()
77 SDL_GL_SwapWindow(fWindow); in onSwapBuffers()
DRasterWindowContext_ios.cpp45 SDL_Window* fWindow; member in __anon1520280f0111::RasterWindowContext_ios
55 , fWindow(info.fWindow) in RasterWindowContext_ios()
68 SkASSERT(fWindow); in onInitializeContext()
71 if (0 == SDL_GL_MakeCurrent(fWindow, fGLContext)) { in onInitializeContext()
81 SDL_GL_GetDrawableSize(fWindow, &fWidth, &fHeight); in onInitializeContext()
101 if (fWindow && fGLContext) { in onSwapBuffers()
110 SDL_GL_SwapWindow(fWindow); in onSwapBuffers()
DWindow_ios.cpp32 if (fWindow) { in initWindow()
61 fWindow = SDL_CreateWindow("SDL Window", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, in initWindow()
64 if (!fWindow) { in initWindow()
71 fWindowID = SDL_GetWindowID(fWindow); in initWindow()
74 fGLContext = SDL_GL_CreateContext(fWindow); in initWindow()
90 if (fWindow) { in closeWindow()
92 SDL_DestroyWindow(fWindow); in closeWindow()
94 fWindow = nullptr; in closeWindow()
249 SDL_SetWindowTitle(fWindow, title); in setTitle()
253 SDL_ShowWindow(fWindow); in show()
[all …]
/external/skia/tools/sk_app/unix/
DWindow_unix.cpp123 fWindow = XCreateWindow(display, in initWindow()
135 fWindow = XCreateSimpleWindow(display, in initWindow()
142 XSelectInput(display, fWindow, kEventMask); in initWindow()
145 if (!fWindow) { in initWindow()
153 XSetWMProtocols(display, fWindow, &fWmDeleteMessage, 1); in initWindow()
172 gWindowMap.remove(fWindow); in closeWindow()
173 XDestroyWindow(fDisplay, fWindow); in closeWindow()
174 fWindow = 0; in closeWindow()
250 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in handleEvent()
328 XSetWMName(fDisplay, fWindow, &textproperty); in setTitle()
[all …]
DRasterWindowContext_unix.cpp23 bool isValid() override { return SkToBool(fWindow); } in isValid()
30 XWindow fWindow; member in __anona53bf88a0111::RasterWindowContext_xlib
40 , fWindow(window) { in RasterWindowContext_xlib()
41 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in RasterWindowContext_xlib()
50 XGetWindowAttributes(fDisplay, fWindow, &attrs); in setDisplayParams()
85 XPutImage(fDisplay, fWindow, fGC, &image, 0, 0, 0, 0, pm.width(), pm.height()); in swapBuffers()
94 WindowContext* ctx = new RasterWindowContext_xlib(info.fDisplay, info.fWindow, info.fWidth, in NewRasterForXlib()
DGLWindowContext_unix.cpp43 XWindow fWindow; member in __anondd56548c0111::GLWindowContext_xlib
54 , fWindow(winInfo.fWindow) in GLWindowContext_xlib()
98 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
126 if (!current && !glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
141 XGetGeometry(fDisplay, fWindow, &root, &x, &y, (unsigned int*)&fWidth, (unsigned int*)&fHeight, in onInitializeContext()
163 glXSwapBuffers(fDisplay, fWindow); in onSwapBuffers()
/external/skqp/tools/sk_app/unix/
DWindow_unix.cpp123 fWindow = XCreateWindow(display, in initWindow()
135 fWindow = XCreateSimpleWindow(display, in initWindow()
142 XSelectInput(display, fWindow, kEventMask); in initWindow()
145 if (!fWindow) { in initWindow()
153 XSetWMProtocols(display, fWindow, &fWmDeleteMessage, 1); in initWindow()
172 gWindowMap.remove(fWindow); in closeWindow()
173 XDestroyWindow(fDisplay, fWindow); in closeWindow()
174 fWindow = 0; in closeWindow()
250 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in handleEvent()
328 XSetWMName(fDisplay, fWindow, &textproperty); in setTitle()
[all …]
DRasterWindowContext_unix.cpp23 bool isValid() override { return SkToBool(fWindow); } in isValid()
30 XWindow fWindow; member in __anon05435cc10111::RasterWindowContext_xlib
40 , fWindow(window) { in RasterWindowContext_xlib()
41 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in RasterWindowContext_xlib()
50 XGetWindowAttributes(fDisplay, fWindow, &attrs); in setDisplayParams()
85 XPutImage(fDisplay, fWindow, fGC, &image, 0, 0, 0, 0, pm.width(), pm.height()); in swapBuffers()
94 WindowContext* ctx = new RasterWindowContext_xlib(info.fDisplay, info.fWindow, info.fWidth, in NewRasterForXlib()
DGLWindowContext_unix.cpp43 XWindow fWindow; member in __anon9f7e35430111::GLWindowContext_xlib
54 , fWindow(winInfo.fWindow) in GLWindowContext_xlib()
98 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
126 if (!current && !glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
141 XGetGeometry(fDisplay, fWindow, &root, &x, &y, (unsigned int*)&fWidth, (unsigned int*)&fHeight, in onInitializeContext()
163 glXSwapBuffers(fDisplay, fWindow); in onSwapBuffers()
/external/skqp/tools/sk_app/android/
Dsurface_glue_android.cpp83 if (fWindow) { in ~SkiaAndroidApp()
84 fWindow->detach(); in ~SkiaAndroidApp()
130 ((Window_android*)skiaAndroidApp->fWindow)->paintIfNeeded(); in message_callback()
136 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback()
138 ((Window_android*)skiaAndroidApp->fWindow)->paintIfNeeded(); in message_callback()
145 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback()
158 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback()
169 skiaAndroidApp->fWindow->onKey(it->second, Window::kDown_InputState, 0); in message_callback()
170 skiaAndroidApp->fWindow->onKey(it->second, Window::kUp_InputState, 0); in message_callback()
176 skiaAndroidApp->fWindow->onTouch(message.fTouchOwner, it->second, message.fTouchX, in message_callback()
[all …]
/external/skia/tools/sk_app/android/
Dsurface_glue_android.cpp83 if (fWindow) { in ~SkiaAndroidApp()
84 fWindow->detach(); in ~SkiaAndroidApp()
130 ((Window_android*)skiaAndroidApp->fWindow)->paintIfNeeded(); in message_callback()
136 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback()
138 ((Window_android*)skiaAndroidApp->fWindow)->paintIfNeeded(); in message_callback()
145 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback()
158 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback()
169 skiaAndroidApp->fWindow->onKey(it->second, Window::kDown_InputState, 0); in message_callback()
170 skiaAndroidApp->fWindow->onKey(it->second, Window::kUp_InputState, 0); in message_callback()
176 skiaAndroidApp->fWindow->onTouch(message.fTouchOwner, it->second, message.fTouchX, in message_callback()
[all …]
/external/skia/tools/gpu/gl/angle/
DGLTestContext_angle.cpp113 HWND fWindow; member in __anona68d8d0a0111::ANGLEGLContext
131 fWindow = nullptr; in ANGLEGLContext()
156 if (!(fWindow = CreateWindow(TEXT("ANGLE-win"), in ANGLEGLContext()
166 if (!(fDeviceContext = GetDC(fWindow))) { in ANGLEGLContext()
357 if (fWindow) { in destroyGLContext()
359 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext()
363 DestroyWindow(fWindow); in destroyGLContext()
364 fWindow = 0; in destroyGLContext()
/external/skqp/tools/gpu/gl/angle/
DGLTestContext_angle.cpp113 HWND fWindow; member in __anon68b56dc10111::ANGLEGLContext
131 fWindow = nullptr; in ANGLEGLContext()
156 if (!(fWindow = CreateWindow(TEXT("ANGLE-win"), in ANGLEGLContext()
166 if (!(fDeviceContext = GetDC(fWindow))) { in ANGLEGLContext()
357 if (fWindow) { in destroyGLContext()
359 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext()
363 DestroyWindow(fWindow); in destroyGLContext()
364 fWindow = 0; in destroyGLContext()

123