Home
last modified time | relevance | path

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

12

/third_party/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 …]
DMetalWindowContext_ios.mm41 sk_app::Window_ios* fWindow;
51 , fWindow(info.fWindow)
66 SkASSERT(nil != fWindow);
70 fMetalView = [[[MetalView alloc] initWithFrame:frameRect] initWithWindow:fWindow];
DWindow_ios.h23 , fWindow(nil) {} in Window_ios()
37 UIWindow* uiWindow() { return fWindow; } in uiWindow()
44 UIWindow* fWindow; variable
DGLWindowContext_ios.mm45 sk_app::Window_ios* fWindow;
57 , fWindow(info.fWindow)
77 fGLView = [[[GLView alloc] initWithFrame:frameRect] initWithWindow:fWindow];
DRasterWindowContext_ios.mm53 sk_app::Window_ios* fWindow;
67 , fWindow(info.fWindow)
87 fRasterView = [[[RasterView alloc] initWithFrame:frameRect] initWithWindow:fWindow];
/third_party/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 …]
/third_party/skia/experimental/sktext/editor/
DApp.cpp27 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->show(); in init()
45 ~EditorApplication() override { fWindow->detach(); } in ~EditorApplication()
53 fWindow->inval(); in onIdle()
/third_party/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 …]
DWindow_mac.h22 , fWindow(nil) {} in Window_mac()
48 NSWindow* window() { return fWindow; } in window()
52 NSWindow* fWindow;
/third_party/skia/tools/viewer/
DViewer.cpp384 fWindow = Window::CreateNativeWindow(platformData);
400 fWindow->setRequestedDisplayParams(displayParams);
401 fDisplay = fWindow->getRequestedDisplayParams();
404 fImGuiLayer.setScaleFactor(fWindow->scaleFactor());
405 fStatsLayer.setDisplayScale((fZoomUI ? 2.0f : 1.0f) * fWindow->scaleFactor());
414 fCommands.attach(fWindow);
415 fWindow->pushLayer(this);
416 fWindow->pushLayer(&fStatsLayer);
417 fWindow->pushLayer(&fImGuiLayer);
422 fWindow->inval(); in __anon2e493c4a0102()
[all …]
DImGuiLayer.cpp96 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/gpu/gl/win/
DCreatePlatformGLTestContext_win.cpp49 HWND fWindow; member in __anon320bf3af0111::WinGLTestContext
59 : fWindow(nullptr) in WinGLTestContext()
85 if (!(fWindow = CreateWindow(TEXT("Griffin"), in WinGLTestContext()
95 if (!(fDeviceContext = GetDC(fWindow))) { in WinGLTestContext()
126 ReleaseDC(fWindow, fDeviceContext); in WinGLTestContext()
128 DestroyWindow(fWindow); in WinGLTestContext()
129 fWindow = 0; in WinGLTestContext()
176 if (fWindow && fDeviceContext) { in destroyGLContext()
177 ReleaseDC(fWindow, fDeviceContext); in destroyGLContext()
180 if (fWindow) { in destroyGLContext()
[all …]
/third_party/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 …]
DGLWindowContext_unix.cpp43 XWindow fWindow; member in __anon57e81e4a0111::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()
DRasterWindowContext_unix.cpp23 bool isValid() override { return SkToBool(fWindow); } in isValid()
30 XWindow fWindow; member in __anon42f871480111::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()
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()
DWindow_unix.h29 , fWindow(0) in Window_unix()
51 return w.fWindow; in GetKey()
88 XWindow fWindow; variable
/third_party/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::__anon7d8910370111::VideoAsset
/third_party/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 …]
/third_party/skia/modules/skplaintexteditor/app/
Deditor_application.cpp382 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(); } in ~EditorApplication()
410 fWindow->inval(); in onIdle()
/third_party/skia/tools/sk_app/win/
DDawnD3D12WindowContext_win.cpp27 HWND fWindow; member in sk_app::DawnD3D12WindowContext
33 , fWindow(hwnd) { in DawnD3D12WindowContext()
45 return dawn_native::d3d12::CreateNativeSwapChainImpl(fDevice.Get(), fWindow); in createSwapChainImplementation()
DD3D12WindowContext_win.cpp54 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/
DGLTestContext_angle.cpp122 HWND fWindow; member in __anon211f56c80111::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/
DSurface.cpp25 : fWindow(win) in WindowSurface()
28 SkASSERT(fWindow); in WindowSurface()
36 ANativeWindow_release(fWindow); in release()
/third_party/skia/tools/sk_app/
DCommandSet.cpp29 fWindow->inval(); in CommandSet()
34 fWindow = window; in attach()

12