Home
last modified time | relevance | path

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

123

/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/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/tools/sk_app/ios/
DWindow_ios.mm46 if (fWindow) {
56 fWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
57 if (nil == fWindow) {
61 fWindow.backgroundColor = [UIColor whiteColor];
64 [fWindow setRootViewController:viewController];
65 [fWindow makeKeyAndVisible];
73 if (nil != fWindow) {
75 [fWindow release];
76 fWindow = nil;
84 info.fWindow = this;
[all …]
DWindow_ios.h23 , fWindow(nil) {} in Window_ios()
37 UIWindow* uiWindow() { return fWindow; } in uiWindow()
44 UIWindow* fWindow; variable
/external/skia/tools/sk_app/mac/
DWindow_mac.mm47 if (fWindow) {
65 fWindow = [[NSWindow alloc] initWithContentRect:windowRect styleMask:windowStyle
67 if (nil == fWindow) {
75 [fWindow release];
80 [fWindow setContentView:view];
81 [fWindow makeFirstResponder:view];
82 [fWindow setDelegate:delegate];
83 [fWindow setAcceptsMouseMovedEvents:YES];
84 [fWindow setRestorable:NO];
89 fWindowNumber = fWindow.windowNumber;
[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/skia/tools/viewer/
DViewer.cpp371 fWindow = Window::CreateNativeWindow(platformData);
387 fWindow->setRequestedDisplayParams(displayParams);
388 fDisplay = fWindow->getRequestedDisplayParams();
391 fImGuiLayer.setScaleFactor(fWindow->scaleFactor());
392 fStatsLayer.setDisplayScale((fZoomUI ? 2.0f : 1.0f) * fWindow->scaleFactor());
401 fCommands.attach(fWindow);
402 fWindow->pushLayer(this);
403 fWindow->pushLayer(&fStatsLayer);
404 fWindow->pushLayer(&fImGuiLayer);
409 fWindow->inval(); in __anonbb003f130102()
[all …]
/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 __anon4982b52a0102()
254 fWindow->inval(); in __anon4982b52a0202()
260 fWindow->inval(); in __anon4982b52a0302()
264 fWindow->inval(); in __anon4982b52a0402()
[all …]
/external/skqp/tools/sk_app/ios/
DGLWindowContext_ios.cpp33 SDL_Window* fWindow; member in __anon07764cf80111::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 __anon423e33b60111::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/gpu/gl/win/
DCreatePlatformGLTestContext_win.cpp48 HWND fWindow; member in __anon8a4327180111::WinGLTestContext
58 : fWindow(nullptr) in WinGLTestContext()
84 if (!(fWindow = CreateWindow(TEXT("Griffin"), in WinGLTestContext()
94 if (!(fDeviceContext = GetDC(fWindow))) { in WinGLTestContext()
125 ReleaseDC(fWindow, fDeviceContext); in WinGLTestContext()
127 DestroyWindow(fWindow); in WinGLTestContext()
128 fWindow = 0; in WinGLTestContext()
175 if (fWindow && fDeviceContext) { in destroyGLContext()
176 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext()
179 if (fWindow) { in destroyGLContext()
[all …]
/external/skqp/tools/gpu/gl/win/
DCreatePlatformGLTestContext_win.cpp48 HWND fWindow; member in __anondd08988f0111::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/modules/androidkit/src/
DSurface.cpp51 : fWindow(win) in WindowSurface()
54 SkASSERT(fWindow); in WindowSurface()
63 ANativeWindow_release(fWindow); in release()
79 ANativeWindow* fWindow; member in __anon8da6ea000111::WindowSurface
161 fWindow = ANativeWindow_fromSurface(env, surface); in ThreadedSurface()
163 message.fNativeWindow = fWindow; in ThreadedSurface()
169 if (fWindow) { in release()
170 ANativeWindow_release(fWindow); in release()
176 return fRecorder.beginRecording(ANativeWindow_getWidth(fWindow), in getCanvas()
177 ANativeWindow_getHeight(fWindow)); in getCanvas()
[all …]
/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 __anonf212ee280111::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 __anone6872b2a0111::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/skia/modules/skresources/src/
DSkResources.cpp53 fWindow[0] = std::move(fWindow[1]); in advance()
54 fWindow[1].frame = fDecoder->nextImage(&fWindow[1].stamp); in advance()
55 fEof = !fWindow[1].frame; in advance()
61 if (t < fWindow[0].stamp) { in getFrame()
64 fWindow[0].stamp = fWindow[1].stamp = 0; in getFrame()
68 while (!fEof && t >= fWindow[1].stamp) { in getFrame()
72 SkASSERT(fWindow[0].stamp <= t && (fEof || t < fWindow[1].stamp)); in getFrame()
74 return fWindow[0].frame; in getFrame()
84 FrameRec fWindow[2]; member in skresources::__anon991685000111::VideoAsset
/external/skia/tools/sk_app/unix/
DWindow_unix.cpp130 fWindow = XCreateWindow(display, in initWindow()
142 fWindow = XCreateSimpleWindow(display, in initWindow()
149 XSelectInput(display, fWindow, kEventMask); in initWindow()
152 if (!fWindow) { in initWindow()
160 XSetWMProtocols(display, fWindow, &fWmDeleteMessage, 1); in initWindow()
179 gWindowMap.remove(fWindow); in closeWindow()
180 XDestroyWindow(fDisplay, fWindow); in closeWindow()
181 fWindow = 0; in closeWindow()
257 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in handleEvent()
374 XSetWMName(fDisplay, fWindow, &textproperty); in setTitle()
[all …]
DRasterWindowContext_unix.cpp23 bool isValid() override { return SkToBool(fWindow); } in isValid()
30 XWindow fWindow; member in __anon920b89f10111::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()
96 info.fDisplay, info.fWindow, info.fWidth, info.fHeight, params)); in MakeRasterForXlib()
DGLWindowContext_unix.cpp43 XWindow fWindow; member in __anon245f4a730111::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()
136 glXSwapIntervalEXT(fDisplay, fWindow, fDisplayParams.fDisableVsync ? 0 : 1); in onInitializeContext()
152 XGetGeometry(fDisplay, fWindow, &root, &x, &y, (unsigned int*)&fWidth, (unsigned int*)&fHeight, in onInitializeContext()
174 glXSwapBuffers(fDisplay, fWindow); in onSwapBuffers()
DDawnVulkanWindowContext_unix.cpp36 XWindow fWindow; member in sk_app::DawnVulkanWindowContext_xlib
46 , fWindow(winInfo.fWindow) { in DawnVulkanWindowContext_xlib()
51 XGetGeometry(fDisplay, fWindow, &root, &x, &y, &width, &height, &border_width, &depth); in DawnVulkanWindowContext_xlib()
88 surfaceCreateInfo.window = fWindow; in onInitializeContext()
/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, skui::InputState::kDown, skui::ModifierKey::kNone); in message_callback()
170 … skiaAndroidApp->fWindow->onKey(it->second, skui::InputState::kUp, skui::ModifierKey::kNone); in message_callback()
176 skiaAndroidApp->fWindow->onTouch(message.fTouchOwner, it->second, message.fTouchX, in message_callback()
[all …]
/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 …]

123