/third_party/skia/experimental/sktext/editor/ |
H A D | App.cpp | 27 std::unique_ptr<sk_app::Window> fWindow; member 31 EditorApplication(std::unique_ptr<sk_app::Window> win) : fWindow(std::move(win)) {} in EditorApplication() 34 fWindow->attach(sk_app::Window::kRaster_BackendType); in init() 36 fLayer = Editor::MakeDemo(fWindow->width(), fWindow->height()); in init() 38 fWindow->pushLayer(fLayer.get()); in init() 39 fWindow->setTitle("Editor"); in init() 41 fLayer->onResize(fWindow->width(), fWindow->height()); in init() 42 fWindow in init() [all...] |
/third_party/skia/example/ |
H A D | HelloWorld.cpp | 27 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 in onBackendCreated() [all...] |
H A D | HelloWorld.h | 30 sk_app::Window* fWindow; member in HelloWorld
|
/third_party/skia/tools/gpu/gl/win/ |
H A D | CreatePlatformGLTestContext_win.cpp | 49 HWND fWindow; 59 : fWindow(nullptr) 85 if (!(fWindow = CreateWindow(TEXT("Griffin"), 95 if (!(fDeviceContext = GetDC(fWindow))) { 126 ReleaseDC(fWindow, fDeviceContext); 128 DestroyWindow(fWindow); 129 fWindow = 0; 176 if (fWindow && fDeviceContext) { 177 ReleaseDC(fWindow, fDeviceContext); 180 if (fWindow) { [all...] |
/third_party/skia/tools/viewer/ |
H A D | Viewer.cpp | 384 fWindow = Window::CreateNativeWindow(platformData); in fPerspectiveMode() 400 fWindow->setRequestedDisplayParams(displayParams); in fPerspectiveMode() 401 fDisplay = fWindow->getRequestedDisplayParams(); in fPerspectiveMode() 404 fImGuiLayer.setScaleFactor(fWindow->scaleFactor()); in fPerspectiveMode() 405 fStatsLayer.setDisplayScale((fZoomUI ? 2.0f : 1.0f) * fWindow->scaleFactor()); in fPerspectiveMode() 414 fCommands.attach(fWindow); in fPerspectiveMode() 415 fWindow->pushLayer(this); in fPerspectiveMode() 416 fWindow->pushLayer(&fStatsLayer); in fPerspectiveMode() 417 fWindow->pushLayer(&fImGuiLayer); in fPerspectiveMode() 422 fWindow in fPerspectiveMode() [all...] |
H A D | ImGuiLayer.cpp | 96 fWindow = window; in onAttach() 100 io.ClipboardUserData = fWindow; in onAttach() 139 io.DisplaySize.x = static_cast<float>(fWindow->width()); in onPrePaint() 140 io.DisplaySize.y = static_cast<float>(fWindow->height()); in onPrePaint()
|
/third_party/skia/tools/sk_app/unix/ |
H A D | Window_unix.cpp | 130 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, in setTitle() [all...] |
H A D | GLWindowContext_unix.cpp | 43 XWindow fWindow; member in __anon26512::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()
|
H A D | RasterWindowContext_unix.cpp | 23 bool isValid() override { return SkToBool(fWindow); } 30 XWindow fWindow; member in __anon26513::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()
|
H A D | DawnVulkanWindowContext_unix.cpp | 36 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()
|
H A D | Window_unix.h | 29 , fWindow(0) in Window_unix() 51 return w.fWindow; in GetKey() 88 XWindow fWindow; member in sk_app::Window_unix
|
H A D | WindowContextFactory_unix.h | 32 XWindow fWindow; member
|
/third_party/skia/modules/skresources/src/ |
H A D | SkResources.cpp | 53 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) { 64 fWindow[0].stamp = fWindow[1].stamp = 0; 68 while (!fEof && t >= fWindow[1].stamp) { 72 SkASSERT(fWindow[ 84 FrameRec fWindow[2]; global() member in skresources::__anon18606::final [all...] |
/third_party/skia/tools/sk_app/android/ |
H A D | surface_glue_android.cpp | 83 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 in message_callback() [all...] |
H A D | surface_glue_android.h | 50 Window* fWindow; member
|
H A D | Window_android.cpp | 26 fSkiaAndroidApp->fWindow = this; in init()
|
/third_party/skia/tools/sk_app/ios/ |
H A D | Window_ios.h | 23 , fWindow(nil) {} in Window_ios() 37 UIWindow* uiWindow() { return fWindow; } in uiWindow() 44 UIWindow* fWindow; member in sk_app::Window_ios
|
H A D | WindowContextFactory_ios.h | 27 sk_app::Window_ios* fWindow; member
|
/third_party/skia/tools/sk_app/mac/ |
H A D | Window_mac.h | 22 , fWindow(nil) {} in Window_mac() 48 NSWindow* window() { return fWindow; } in window() 52 NSWindow* fWindow; member in sk_app::Window_mac
|
/third_party/skia/modules/skplaintexteditor/app/ |
H A D | editor_application.cpp | 382 std::unique_ptr<sk_app::Window> fWindow; member 386 EditorApplication(std::unique_ptr<sk_app::Window> win) : fWindow(std::move(win)) {} in EditorApplication() 389 fWindow->attach(kBackendType); in init() 394 fWindow->pushLayer(&fLayer); in init() 395 fWindow->setTitle(SkStringPrintf("Editor: \"%s\"", fLayer.fPath.c_str()).c_str()); in init() 396 fLayer.onResize(fWindow->width(), fWindow->height()); in init() 399 fWindow->show(); in init() 402 ~EditorApplication() override { fWindow->detach(); } 410 fWindow [all...] |
/third_party/skia/tools/sk_app/win/ |
H A D | DawnD3D12WindowContext_win.cpp | 27 HWND fWindow; member in sk_app::DawnD3D12WindowContext 33 , fWindow(hwnd) { in DawnD3D12WindowContext() 45 return dawn_native::d3d12::CreateNativeSwapChainImpl(fDevice.Get(), fWindow); in createSwapChainImplementation()
|
H A D | D3D12WindowContext_win.cpp | 54 HWND fWindow; member in sk_app::D3D12WindowContext 70 , fWindow(hwnd) { in D3D12WindowContext() 90 GetWindowRect(fWindow, &windowRect); in initializeContext() 111 fQueue.get(), fWindow, &swapChainDesc, nullptr, nullptr, &swapChain)); in initializeContext() 114 GR_D3D_CALL_ERRCHECK(factory->MakeWindowAssociation(fWindow, DXGI_MWA_NO_ALT_ENTER)); in initializeContext()
|
/third_party/skia/tools/gpu/gl/angle/ |
H A D | GLTestContext_angle.cpp | 122 HWND fWindow; member in ANGLEGLContext 186 fWindow = nullptr; in ANGLEGLContext() 219 if (!(fWindow = CreateWindow(TEXT("ANGLE-win"), in ANGLEGLContext() 229 if (!(fDeviceContext = GetDC(fWindow))) { in ANGLEGLContext() 458 if (fWindow) { in destroyGLContext() 460 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext() 464 DestroyWindow(fWindow); in destroyGLContext() 465 fWindow = 0; in destroyGLContext()
|
/third_party/skia/modules/androidkit/src/ |
H A D | Surface.cpp | 25 : fWindow(win) in WindowSurface() 28 SkASSERT(fWindow); in WindowSurface() 36 ANativeWindow_release(fWindow); in release()
|
/third_party/skia/tools/sk_app/ |
H A D | CommandSet.cpp | 29 fWindow->inval(); in CommandSet() 34 fWindow = window; in attach()
|