/aosp_15_r20/external/skia/tools/sk_app/mac/ |
H A D | Window_mac.mm | 71 if (fWindow) { 89 fWindow = [[NSWindow alloc] initWithContentRect:windowRect styleMask:windowStyle 91 if (nil == fWindow) { 99 [fWindow release]; 104 [fWindow setContentView:view]; 105 [fWindow makeFirstResponder:view]; 106 [fWindow setDelegate:delegate]; 107 [fWindow setAcceptsMouseMovedEvents:YES]; 108 [fWindow setRestorable:NO]; 113 fWindowNumber = fWindow.windowNumber; [all …]
|
H A D | Window_mac.h | 22 , fWindow(nil) {} in Window_mac() 48 NSWindow* window() { return fWindow; } in window() 52 NSWindow* fWindow;
|
/aosp_15_r20/external/skia/tools/viewer/ |
H A D | Viewer.cpp | 590 fWindow = Windows::CreateNativeWindow(platformData); 616 fWindow->setRequestedDisplayParams(paramsBuilder.build()); 620 fImGuiLayer.setScaleFactor(fWindow->scaleFactor()); 621 fStatsLayer.setDisplayScale((fZoomUI ? 2.0f : 1.0f) * fWindow->scaleFactor()); 630 fCommands.attach(fWindow); 631 fWindow->pushLayer(this); 632 fWindow->pushLayer(&fStatsLayer); 633 fWindow->pushLayer(&fImGuiLayer); 638 fWindow->inval(); in __anon340b2ac20102() 644 fWindow->inval(); in __anon340b2ac20202() [all …]
|
H A D | ImGuiLayer.cpp | 104 fWindow = window; in onAttach() 108 io.ClipboardUserData = fWindow; in onAttach() 147 io.DisplaySize.x = static_cast<float>(fWindow->width()); in onPrePaint() 148 io.DisplaySize.y = static_cast<float>(fWindow->height()); in onPrePaint()
|
/aosp_15_r20/external/skia/tools/sk_app/ios/ |
H A D | Window_ios.mm | 49 if (fWindow) { 59 fWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 60 if (nil == fWindow) { 64 fWindow.backgroundColor = [UIColor whiteColor]; 67 [fWindow setRootViewController:viewController]; 68 [fWindow makeKeyAndVisible]; 76 if (nil != fWindow) { 78 [fWindow release]; 79 fWindow = nil; 87 info.fWindow = this; [all …]
|
H A D | Window_ios.h | 23 , fWindow(nil) {} in Window_ios() 37 UIWindow* uiWindow() { return fWindow; } in uiWindow() 44 UIWindow* fWindow; variable
|
/aosp_15_r20/external/skia/tools/gpu/gl/win/ |
H A D | CreatePlatformGLTestContext_win.cpp | 48 HWND fWindow; member in __anonfe7f95270111::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 = nullptr; in WinGLTestContext() 175 if (fWindow && fDeviceContext) { in destroyGLContext() 176 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext() 179 if (fWindow) { in destroyGLContext() [all …]
|
/aosp_15_r20/external/skia/tools/sk_app/unix/ |
H A D | Window_unix.cpp | 144 fWindow = XCreateWindow(display, in initWindow() 156 if (!fWindow) { in initWindow() 158 fWindow = XCreateSimpleWindow(display, in initWindow() 165 XSelectInput(display, fWindow, kEventMask); in initWindow() 168 if (!fWindow) { in initWindow() 176 XSetWMProtocols(display, fWindow, &fWmDeleteMessage, 1); in initWindow() 195 gWindowMap.remove(fWindow); in closeWindow() 196 XDestroyWindow(fDisplay, fWindow); in closeWindow() 197 fWindow = 0; in closeWindow() 273 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in handleEvent() [all …]
|
H A D | Window_unix.h | 29 , fWindow(0) in Window_unix() 51 return w.fWindow; in GetKey() 89 XWindow fWindow; variable
|
/aosp_15_r20/external/skia/modules/skresources/src/ |
H A D | SkResources.cpp | 57 fWindow[0] = std::move(fWindow[1]); in advance() 58 fWindow[1].frame = fDecoder->nextImage(&fWindow[1].stamp); in advance() 59 fEof = !fWindow[1].frame; in advance() 65 if (t < fWindow[0].stamp) { in getFrame() 68 fWindow[0].stamp = fWindow[1].stamp = 0; in getFrame() 72 while (!fEof && t >= fWindow[1].stamp) { in getFrame() 76 SkASSERT(fWindow[0].stamp <= t && (fEof || t < fWindow[1].stamp)); in getFrame() 78 return fWindow[0].frame; in getFrame() 88 FrameRec fWindow[2]; member in skresources::__anon4b88eeaf0111::VideoAsset
|
/aosp_15_r20/external/skia/tools/window/unix/ |
H A D | GaneshGLWindowContext_unix.cpp | 46 XWindow fWindow; member in __anon843dc3320111::GLWindowContext_xlib 56 , fWindow(winInfo.fWindow) in GLWindowContext_xlib() 106 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() 134 if (!current && !glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() 144 glXSwapIntervalEXT(fDisplay, fWindow, fDisplayParams->disableVsync() ? 0 : 1); in onInitializeContext() 161 fWindow, in onInitializeContext() 187 glXSwapBuffers(fDisplay, fWindow); in onSwapBuffers()
|
H A D | RasterWindowContext_unix.cpp | 26 bool isValid() override { return SkToBool(fWindow); } in isValid() 35 XWindow fWindow; member in __anonfc47571a0111::RasterWindowContext_xlib 44 : RasterWindowContext(std::move(params)), fDisplay(display), fWindow(window) { in RasterWindowContext_xlib() 45 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in RasterWindowContext_xlib() 54 XGetWindowAttributes(fDisplay, fWindow, &attrs); in setDisplayParams() 88 XPutImage(fDisplay, fWindow, fGC, &image, 0, 0, 0, 0, pm.width(), pm.height()); in onSwapBuffers() 98 info.fDisplay, info.fWindow, info.fWidth, info.fHeight, std::move(params))); in MakeRasterForXlib()
|
H A D | GraphiteDawnVulkanWindowContext_unix.cpp | 36 XWindow fWindow; member in __anonb63026980111::GraphiteDawnVulkanWindowContext_unix 43 , fWindow(info.fWindow) { in GraphiteDawnVulkanWindowContext_unix() 48 XGetGeometry(fDisplay, fWindow, &root, &x, &y, &width, &height, &border_width, &depth); in GraphiteDawnVulkanWindowContext_unix() 57 SkASSERT(!!fWindow); in onInitializeContext() 67 surfaceChainedDesc.window = fWindow; in onInitializeContext()
|
H A D | XlibWindowInfo.h | 22 XWindow fWindow; member
|
/aosp_15_r20/external/skia/tools/sk_app/android/ |
H A D | surface_glue_android.cpp | 85 if (fWindow) { in ~SkiaAndroidApp() 86 fWindow->detach(); in ~SkiaAndroidApp() 131 ((Window_android*)skiaAndroidApp->fWindow)->paintIfNeeded(); in message_callback() 137 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback() 139 ((Window_android*)skiaAndroidApp->fWindow)->paintIfNeeded(); in message_callback() 146 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback() 159 auto window_android = (Window_android*)skiaAndroidApp->fWindow; in message_callback() 170 … skiaAndroidApp->fWindow->onKey(it->second, skui::InputState::kDown, skui::ModifierKey::kNone); in message_callback() 171 … skiaAndroidApp->fWindow->onKey(it->second, skui::InputState::kUp, skui::ModifierKey::kNone); in message_callback() 177 skiaAndroidApp->fWindow->onTouch(message.fTouchOwner, it->second, message.fTouchX, in message_callback() [all …]
|
/aosp_15_r20/external/skia/modules/skplaintexteditor/app/ |
H A D | editor_application.cpp | 415 std::unique_ptr<sk_app::Window> fWindow; member 419 EditorApplication(std::unique_ptr<sk_app::Window> win) : fWindow(std::move(win)) {} in EditorApplication() 422 fWindow->attach(kBackendType); in init() 427 fWindow->pushLayer(&fLayer); in init() 428 fWindow->setTitle(SkStringPrintf("Editor: \"%s\"", fLayer.fPath.c_str()).c_str()); in init() 429 fLayer.onResize(fWindow->width(), fWindow->height()); in init() 432 fWindow->show(); in init() 435 ~EditorApplication() override { fWindow->detach(); } in ~EditorApplication() 443 fWindow->inval(); in onIdle()
|
/aosp_15_r20/external/skia/tools/gpu/gl/angle/ |
H A D | GLTestContext_angle.cpp | 126 HWND fWindow; member in __anon1cbc42400111::ANGLEGLContext 190 fWindow = nullptr; in ANGLEGLContext() 223 if (!(fWindow = CreateWindow(TEXT("ANGLE-win"), in ANGLEGLContext() 233 if (!(fDeviceContext = GetDC(fWindow))) { in ANGLEGLContext() 465 if (fWindow) { in destroyGLContext() 467 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext() 471 DestroyWindow(fWindow); in destroyGLContext() 472 fWindow = 0; in destroyGLContext()
|
/aosp_15_r20/external/skia/tools/window/ios/ |
H A D | MetalWindowContext_ios.mm | 41 sk_app::Window_ios* fWindow; 49 , fWindow(info.fWindow) 63 SkASSERT(fWindow != nil); 67 fMetalView = [[[MetalView alloc] initWithFrame:frameRect] initWithWindow:fWindow];
|
H A D | GraphiteMetalWindowContext_ios.mm | 41 sk_app::Window_ios* fWindow; 49 , fWindow(info.fWindow) 63 SkASSERT(fWindow != nil); 67 fMetalView = [[[GraphiteMetalView alloc] initWithFrame:frameRect] initWithWindow:fWindow];
|
H A D | GLWindowContext_ios.mm | 46 sk_app::Window_ios* fWindow; 57 , fWindow(info.fWindow) 76 fGLView = [[[GLView alloc] initWithFrame:frameRect] initWithWindow:fWindow];
|
H A D | RasterWindowContext_ios.mm | 56 sk_app::Window_ios* fWindow; 68 , fWindow(info.fWindow) 87 fRasterView = [[[RasterView alloc] initWithFrame:frameRect] initWithWindow:fWindow];
|
/aosp_15_r20/external/skia/tools/window/win/ |
H A D | GraphiteDawnD3D12WindowContext_win.cpp | 27 HWND fWindow; member in __anond2b741d90111::GraphiteDawnD3D12WindowContext_win 33 , fWindow(hwnd) { in GraphiteDawnD3D12WindowContext_win() 44 SkASSERT(!!fWindow); in onInitializeContext() 53 surfaceChainedDesc.hwnd = fWindow; in onInitializeContext()
|
H A D | D3D12WindowContext_win.cpp | 61 HWND fWindow; member in __anondfaae9fb0111::D3D12WindowContext 76 : WindowContext(std::move(params)), fWindow(hwnd) { in D3D12WindowContext() 95 GetWindowRect(fWindow, &windowRect); in initializeContext() 116 fQueue.get(), fWindow, &swapChainDesc, nullptr, nullptr, &swapChain)); in initializeContext() 119 GR_D3D_CALL_ERRCHECK(factory->MakeWindowAssociation(fWindow, DXGI_MWA_NO_ALT_ENTER)); in initializeContext()
|
/aosp_15_r20/external/skia/modules/jetski/src/ |
H A D | Surface.cpp | 18 : fWindow(win) in WindowSurface() 21 SkASSERT(fWindow); in WindowSurface() 29 ANativeWindow_release(fWindow); in release()
|
/aosp_15_r20/external/skia/tools/sk_app/ |
H A D | CommandSet.cpp | 37 fWindow->inval(); in CommandSet() 42 fWindow = window; in attach()
|