/third_party/skia/example/ |
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->show(); in onBackendCreated() 54 fWindow->inval(); in onBackendCreated() [all …]
|
/third_party/flutter/skia/example/ |
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->show(); in onBackendCreated() 54 fWindow->inval(); in onBackendCreated() [all …]
|
/third_party/skia/tools/sk_app/ios/ |
D | Window_ios.mm | 46 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 …]
|
/third_party/flutter/skia/tools/sk_app/mac/ |
D | Window_mac.mm | 45 if (fWindow) { 63 fWindow = [[NSWindow alloc] initWithContentRect:windowRect styleMask:windowStyle 65 if (nil == fWindow) { 73 [fWindow release]; 78 [fWindow setContentView:view]; 79 [fWindow makeFirstResponder:view]; 80 [fWindow setDelegate:delegate]; 81 [fWindow setAcceptsMouseMovedEvents:YES]; 82 [fWindow setRestorable:NO]; 87 fWindowNumber = fWindow.windowNumber; [all …]
|
D | Window_mac.h | 22 , fWindow(nil) {} in Window_mac() 46 NSWindow* window() { return fWindow; } in window() 50 NSWindow* fWindow;
|
/third_party/skia/experimental/sktext/editor/ |
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->show(); in init() 45 ~EditorApplication() override { fWindow->detach(); } in ~EditorApplication() 53 fWindow->inval(); in onIdle()
|
/third_party/skia/tools/sk_app/mac/ |
D | Window_mac.mm | 47 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 …]
|
/third_party/flutter/skia/tools/viewer/ |
D | Viewer.cpp | 302 fWindow = Window::CreateNativeWindow(platformData); 312 fWindow->setRequestedDisplayParams(displayParams); 321 fCommands.attach(fWindow); 322 fWindow->pushLayer(this); 323 fWindow->pushLayer(&fStatsLayer); 324 fWindow->pushLayer(&fImGuiLayer); 329 fWindow->inval(); in __anone6729f520102() 335 fWindow->inval(); in __anone6729f520202() 341 fWindow->inval(); in __anone6729f520302() 345 fWindow->inval(); in __anone6729f520402() [all …]
|
/third_party/skia/tools/viewer/ |
D | Viewer.cpp | 384 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 __anon0665f43d0102() [all …]
|
/third_party/flutter/skia/tools/sk_app/ios/ |
D | GLWindowContext_ios.cpp | 33 SDL_Window* fWindow; member in __anon6eeccc200111::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()
|
D | RasterWindowContext_ios.cpp | 45 SDL_Window* fWindow; member in __anon71b006de0111::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()
|
D | Window_ios.cpp | 33 if (fWindow) { in initWindow() 62 fWindow = SDL_CreateWindow("SDL Window", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, in initWindow() 65 if (!fWindow) { in initWindow() 72 fWindowID = SDL_GetWindowID(fWindow); in initWindow() 75 fGLContext = SDL_GL_CreateContext(fWindow); in initWindow() 91 if (fWindow) { in closeWindow() 93 SDL_DestroyWindow(fWindow); in closeWindow() 95 fWindow = nullptr; in closeWindow() 250 SDL_SetWindowTitle(fWindow, title); in setTitle() 254 SDL_ShowWindow(fWindow); in show() [all …]
|
/third_party/flutter/skia/tools/gpu/gl/win/ |
D | CreatePlatformGLTestContext_win.cpp | 48 HWND fWindow; member in __anonb20f13b70111::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 …]
|
/third_party/skia/tools/gpu/gl/win/ |
D | CreatePlatformGLTestContext_win.cpp | 49 HWND fWindow; member in __anon7cba04820111::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/flutter/skia/tools/sk_app/unix/ |
D | Window_unix.cpp | 129 fWindow = XCreateWindow(display, in initWindow() 141 fWindow = XCreateSimpleWindow(display, in initWindow() 148 XSelectInput(display, fWindow, kEventMask); in initWindow() 151 if (!fWindow) { in initWindow() 159 XSetWMProtocols(display, fWindow, &fWmDeleteMessage, 1); in initWindow() 178 gWindowMap.remove(fWindow); in closeWindow() 179 XDestroyWindow(fDisplay, fWindow); in closeWindow() 180 fWindow = 0; in closeWindow() 256 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in handleEvent() 334 XSetWMName(fDisplay, fWindow, &textproperty); in setTitle() [all …]
|
D | RasterWindowContext_unix.cpp | 23 bool isValid() override { return SkToBool(fWindow); } in isValid() 30 XWindow fWindow; member in __anonc5462b500111::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()
|
D | GLWindowContext_unix.cpp | 43 XWindow fWindow; member in __anon059a14520111::GLWindowContext_xlib 54 , fWindow(winInfo.fWindow) in GLWindowContext_xlib() 99 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() 127 if (!current && !glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() 137 glXSwapIntervalEXT(fDisplay, fWindow, fDisplayParams.fDisableVsync ? 0 : 1); in onInitializeContext() 153 XGetGeometry(fDisplay, fWindow, &root, &x, &y, (unsigned int*)&fWidth, (unsigned int*)&fHeight, in onInitializeContext() 175 glXSwapBuffers(fDisplay, fWindow); in onSwapBuffers()
|
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()
|
/third_party/skia/modules/skresources/src/ |
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) { 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::__anon33054e2a0111::VideoAsset
|
/third_party/skia/tools/sk_app/unix/ |
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, &textproperty); in setTitle() [all …]
|
D | RasterWindowContext_unix.cpp | 23 bool isValid() override { return SkToBool(fWindow); } in isValid() 30 XWindow fWindow; member in __anon672b1fdb0111::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()
|
D | GLWindowContext_unix.cpp | 43 XWindow fWindow; member in __anon0ddc7b5d0111::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()
|
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()
|
/third_party/flutter/skia/tools/sk_app/android/ |
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, InputState::kDown, ModifierKey::kNone); in message_callback() 170 skiaAndroidApp->fWindow->onKey(it->second, InputState::kUp, ModifierKey::kNone); in message_callback() 176 skiaAndroidApp->fWindow->onTouch(message.fTouchOwner, it->second, message.fTouchX, in message_callback() [all …]
|
/third_party/skia/tools/sk_app/android/ |
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->onTouch(message.fTouchOwner, it->second, message.fTouchX, in message_callback() [all …]
|