Home
last modified time | relevance | path

Searched refs:sk_app (Results 1 – 25 of 150) sorted by relevance

123456

/third_party/flutter/skia/experimental/editor/
Deditor_application.cpp23 static const char* key_name(sk_app::Window::Key k) { in key_name()
25 #define M(X) case sk_app::Window::Key::k ## X: return #X in key_name()
53 static void debug_on_key(sk_app::Window::Key key, InputState, ModifierKey modi) { in debug_on_key()
58 static editor::Editor::Movement convert(sk_app::Window::Key key) { in convert()
60 case sk_app::Window::Key::kLeft: return editor::Editor::Movement::kLeft; in convert()
61 case sk_app::Window::Key::kRight: return editor::Editor::Movement::kRight; in convert()
62 case sk_app::Window::Key::kUp: return editor::Editor::Movement::kUp; in convert()
63 case sk_app::Window::Key::kDown: return editor::Editor::Movement::kDown; in convert()
64 case sk_app::Window::Key::kHome: return editor::Editor::Movement::kHome; in convert()
65 case sk_app::Window::Key::kEnd: return editor::Editor::Movement::kEnd; in convert()
[all …]
/third_party/skia/tools/sk_app/ios/
Dmain_ios.mm9 #include "tools/sk_app/Application.h"
10 #include "tools/sk_app/ios/Window_ios.h"
34 std::unique_ptr<sk_app::Application> fApp;
40 sk_app::Window_ios* mainWindow = sk_app::Window_ios::MainWindow();
47 sk_app::Window_ios* mainWindow = sk_app::Window_ios::MainWindow();
63 fApp = std::unique_ptr<sk_app::Application>(sk_app::Application::Create(gArgc, gArgv, nullptr));
65 auto mainWindow = sk_app::Window_ios::MainWindow();
79 sk_app::Window_ios::PaintWindow();
DMetalWindowContext_ios.mm8 #include "tools/sk_app/MetalWindowContext.h"
9 #include "tools/sk_app/ios/WindowContextFactory_ios.h"
14 using sk_app::DisplayParams;
15 using sk_app::window_context_factory::IOSWindowInfo;
16 using sk_app::MetalWindowContext;
41 sk_app::Window_ios* fWindow;
102 namespace sk_app {
115 } // namespace sk_app
DGLWindowContext_ios.mm10 #include "tools/sk_app/GLWindowContext.h"
11 #include "tools/sk_app/ios/WindowContextFactory_ios.h"
16 using sk_app::DisplayParams;
17 using sk_app::window_context_factory::IOSWindowInfo;
18 using sk_app::GLWindowContext;
45 sk_app::Window_ios* fWindow;
156 namespace sk_app {
169 } // namespace sk_app
DWindow_ios.mm8 #include "tools/sk_app/ios/WindowContextFactory_ios.h"
9 #include "tools/sk_app/ios/Window_ios.h"
17 - (WindowViewController*)initWithWindow:(sk_app::Window_ios*)initWindow;
23 using sk_app::Window;
25 namespace sk_app {
116 } // namespace sk_app
121 sk_app::Window_ios* fWindow;
124 - (WindowViewController*)initWithWindow:(sk_app::Window_ios *)initWindow {
149 sk_app::Window_ios* fWindow;
224 - (MainView*)initWithWindow:(sk_app::Window_ios *)initWindow {
DRasterWindowContext_ios.mm13 #include "tools/sk_app/GLWindowContext.h"
14 #include "tools/sk_app/ios/WindowContextFactory_ios.h"
19 using sk_app::DisplayParams;
20 using sk_app::window_context_factory::IOSWindowInfo;
21 using sk_app::GLWindowContext;
53 sk_app::Window_ios* fWindow;
183 namespace sk_app {
196 } // namespace sk_app
/third_party/skia/experimental/sktext/editor/
DApp.cpp26 struct EditorApplication : public sk_app::Application {
27 std::unique_ptr<sk_app::Window> fWindow;
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()
60 sk_app::Application* sk_app::Application::Create(int argc, char** argv, void* dat) { in Create()
64 std::unique_ptr<sk_app::Window> win(sk_app::Window::CreateNativeWindow(dat)); in Create()
/third_party/skia/tools/sk_app/unix/
Dmain_unix.cpp19 sk_app::Application* app = sk_app::Application::Create(argc, argv, (void*)display); in main()
47 SkTHashSet<sk_app::Window_unix*> pendingWindows; in main()
52 sk_app::Window_unix* win = sk_app::Window_unix::gWindowMap.find(event.xany.window); in main()
75 pendingWindows.foreach([](sk_app::Window_unix* win) { in main()
/third_party/flutter/skia/tools/sk_app/unix/
Dmain_unix.cpp19 sk_app::Application* app = sk_app::Application::Create(argc, argv, (void*)display); in main()
47 SkTHashSet<sk_app::Window_unix*> pendingWindows; in main()
52 sk_app::Window_unix* win = sk_app::Window_unix::gWindowMap.find(event.xany.window); in main()
75 pendingWindows.foreach([](sk_app::Window_unix* win) { in main()
/third_party/skia/tools/sk_app/mac/
DMetalWindowContext_mac.mm8 #include "tools/sk_app/MetalWindowContext.h"
9 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
14 using sk_app::DisplayParams;
15 using sk_app::window_context_factory::MacWindowInfo;
16 using sk_app::MetalWindowContext;
82 CGFloat backingScaleFactor = sk_app::GetBackingScaleFactor(fMainView);
96 namespace sk_app {
109 } // namespace sk_app
DGraphiteMetalWindowContext_mac.mm8 #include "tools/sk_app/GraphiteMetalWindowContext.h"
9 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
14 using sk_app::DisplayParams;
15 using sk_app::window_context_factory::MacWindowInfo;
16 using sk_app::GraphiteMetalWindowContext;
82 CGFloat backingScaleFactor = sk_app::GetBackingScaleFactor(fMainView);
96 namespace sk_app {
109 } // namespace sk_app
DGLWindowContext_mac.mm10 #include "tools/sk_app/GLWindowContext.h"
11 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
16 using sk_app::DisplayParams;
17 using sk_app::window_context_factory::MacWindowInfo;
18 using sk_app::GLWindowContext;
137 CGFloat backingScaleFactor = sk_app::GetBackingScaleFactor(fMainView);
166 namespace sk_app {
179 } // namespace sk_app
DWindow_mac.mm11 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
12 #include "tools/sk_app/mac/Window_mac.h"
17 - (WindowDelegate*)initWithWindow:(sk_app::Window_mac*)initWindow;
23 - (MainView*)initWithWindow:(sk_app::Window_mac*)initWindow;
29 using sk_app::Window;
31 namespace sk_app {
98 if (sk_app::Window_mac::gWindowMap.count() < 1) {
162 return sk_app::GetBackingScaleFactor(fWindow.contentView);
173 } // namespace sk_app
178 sk_app::Window_mac* fWindow;
[all …]
DRasterWindowContext_mac.mm13 #include "tools/sk_app/GLWindowContext.h"
14 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
20 using sk_app::DisplayParams;
21 using sk_app::window_context_factory::MacWindowInfo;
22 using sk_app::GLWindowContext;
141 CGFloat backingScaleFactor = sk_app::GetBackingScaleFactor(fMainView);
178 namespace sk_app {
191 } // namespace sk_app
/third_party/skia/modules/skplaintexteditor/app/
Deditor_application.cpp89 struct EditorLayer : public sk_app::Window::Layer {
91 sk_app::Window* fParent = nullptr;
158 void onAttach(sk_app::Window* w) override { fParent = w; } in onAttach()
370 static constexpr sk_app::Window::BackendType kBackendType = sk_app::Window::kVulkan_BackendType;
372 static constexpr sk_app::Window::BackendType kBackendType = sk_app::Window::kMetal_BackendType;
374 static constexpr sk_app::Window::BackendType kBackendType = sk_app::Window::kNativeGL_BackendType;
376 static constexpr sk_app::Window::BackendType kBackendType = sk_app::Window::kDawn_BackendType;
378 static constexpr sk_app::Window::BackendType kBackendType = sk_app::Window::kRaster_BackendType;
381 struct EditorApplication : public sk_app::Application {
382 std::unique_ptr<sk_app::Window> fWindow;
[all …]
/third_party/flutter/skia/tools/sk_app/mac/
DMetalWindowContext_mac.mm8 #include "tools/sk_app/MetalWindowContext.h"
9 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
14 using sk_app::DisplayParams;
15 using sk_app::window_context_factory::MacWindowInfo;
16 using sk_app::MetalWindowContext;
87 namespace sk_app {
100 } // namespace sk_app
DGLWindowContext_mac.mm10 #include "tools/sk_app/GLWindowContext.h"
11 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
16 using sk_app::DisplayParams;
17 using sk_app::window_context_factory::MacWindowInfo;
18 using sk_app::GLWindowContext;
161 namespace sk_app {
174 } // namespace sk_app
DWindow_mac.mm10 #include "tools/sk_app/mac/WindowContextFactory_mac.h"
11 #include "tools/sk_app/mac/Window_mac.h"
15 - (WindowDelegate*)initWithWindow:(sk_app::Window_mac*)initWindow;
21 - (MainView*)initWithWindow:(sk_app::Window_mac*)initWindow;
27 using sk_app::Window;
29 namespace sk_app {
96 if (sk_app::Window_mac::gWindowMap.count() < 1) {
160 } // namespace sk_app
165 sk_app::Window_mac* fWindow;
168 - (WindowDelegate*)initWithWindow:(sk_app::Window_mac *)initWindow {
[all …]
/third_party/flutter/skia/example/
DHelloWorld.h16 class HelloWorld : public sk_app::Application, sk_app::Window::Layer {
30 sk_app::Window* fWindow;
31 sk_app::Window::BackendType fBackendType;
/third_party/skia/example/
DHelloWorld.h16 class HelloWorld : public sk_app::Application, sk_app::Window::Layer {
30 sk_app::Window* fWindow;
31 sk_app::Window::BackendType fBackendType;
/third_party/flutter/skia/tools/viewer/
DViewer.h30 class Viewer : public sk_app::Application, sk_app::Window::Layer {
43 bool onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers) override;
98 void setBackend(sk_app::Window::BackendType);
117 sk_app::Window* fWindow;
145 sk_app::Window::BackendType fBackendType;
157 sk_app::CommandSet fCommands;
/third_party/skia/tools/viewer/
DViewer.h32 class Viewer : public sk_app::Application, sk_app::Window::Layer {
150 void setBackend(sk_app::Window::BackendType);
170 sk_app::Window* fWindow;
198 sk_app::Window::BackendType fBackendType;
211 sk_app::CommandSet fCommands;
250 sk_app::DisplayParams fDisplay;
/third_party/flutter/skia/tools/sk_app/ios/
DGLWindowContext_ios.cpp15 using sk_app::DisplayParams;
16 using sk_app::window_context_factory::IOSWindowInfo;
17 using sk_app::GLWindowContext;
83 namespace sk_app { namespace
DRasterWindowContext_ios.cpp20 using sk_app::DisplayParams;
21 using sk_app::window_context_factory::IOSWindowInfo;
22 using sk_app::GLWindowContext;
116 namespace sk_app { namespace
/third_party/skia/tools/sk_app/
DGraphiteMetalWindowContext.mm10 #include "tools/sk_app/GraphiteMetalWindowContext.h"
15 using sk_app::DisplayParams;
16 using sk_app::GraphiteMetalWindowContext;
18 namespace sk_app {
114 // ARC is off in sk_app, so we need to release the CF ref manually
127 } //namespace sk_app

123456