Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/scene_opengl_shadow_test.cpp
Show All 32 Lines | |||||
33 | #include <KWayland/Client/shadow.h> | 33 | #include <KWayland/Client/shadow.h> | ||
34 | #include <KWayland/Client/shm_pool.h> | 34 | #include <KWayland/Client/shm_pool.h> | ||
35 | #include <KWayland/Client/surface.h> | 35 | #include <KWayland/Client/surface.h> | ||
36 | #include <KWayland/Server/shadow_interface.h> | 36 | #include <KWayland/Server/shadow_interface.h> | ||
37 | #include <KWayland/Server/surface_interface.h> | 37 | #include <KWayland/Server/surface_interface.h> | ||
38 | 38 | | |||
39 | #include "kwin_wayland_test.h" | 39 | #include "kwin_wayland_test.h" | ||
40 | 40 | | |||
41 | #include "abstract_client.h" | ||||
41 | #include "composite.h" | 42 | #include "composite.h" | ||
42 | #include "effect_builtins.h" | 43 | #include "effect_builtins.h" | ||
43 | #include "effectloader.h" | 44 | #include "effectloader.h" | ||
44 | #include "effects.h" | 45 | #include "effects.h" | ||
45 | #include "platform.h" | 46 | #include "platform.h" | ||
46 | #include "shadow.h" | 47 | #include "shadow.h" | ||
47 | #include "xdgshellclient.h" | | |||
48 | #include "wayland_server.h" | 48 | #include "wayland_server.h" | ||
49 | #include "workspace.h" | 49 | #include "workspace.h" | ||
50 | 50 | | |||
51 | Q_DECLARE_METATYPE(KWin::WindowQuadList); | 51 | Q_DECLARE_METATYPE(KWin::WindowQuadList); | ||
52 | 52 | | |||
53 | using namespace KWin; | 53 | using namespace KWin; | ||
54 | using namespace KWayland::Client; | 54 | using namespace KWayland::Client; | ||
55 | 55 | | |||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 102 | { | |||
107 | quad[3] = WindowVertex(geo.left(), geo.bottom(), tx1, ty2); | 107 | quad[3] = WindowVertex(geo.left(), geo.bottom(), tx1, ty2); | ||
108 | return quad; | 108 | return quad; | ||
109 | } | 109 | } | ||
110 | 110 | | |||
111 | void SceneOpenGLShadowTest::initTestCase() | 111 | void SceneOpenGLShadowTest::initTestCase() | ||
112 | { | 112 | { | ||
113 | // Copied from generic_scene_opengl_test.cpp | 113 | // Copied from generic_scene_opengl_test.cpp | ||
114 | 114 | | |||
115 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
116 | qRegisterMetaType<KWin::AbstractClient*>(); | 115 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
117 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 116 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
118 | QVERIFY(workspaceCreatedSpy.isValid()); | 117 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
119 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 118 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
120 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 119 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
121 | 120 | | |||
122 | // disable all effects - we don't want to have it interact with the rendering | 121 | // disable all effects - we don't want to have it interact with the rendering | ||
123 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 122 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 741 Lines • Show Last 20 Lines |