8ae37c420b
Summary: Unfortunately a rather large change which required more refactoring than initially expected. The main problem was that some parts needed to go into platformsupport so that the platform plugins can link them. Due to the rather monolithic nature of scene_opengl.h a few changes were required: * SceneOpenGL::Texture -> SceneOpenGLTexture * SceneOpenGL::TexturePrivate -> SceneOpenGLTexturePrivate * texture based code into dedicated files * SwapProfiler code into dedicated files * SwapProfiler only used in x11 variants * Safety checks for OpenGL scene moved into the new plugin * signal declared in SceneOpenGL moved to Scene, so that we don't need to include SceneOpenGL in composite Test Plan: Nested OpenGL compositor works Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D7740
23 lines
585 B
CMake
23 lines
585 B
CMake
set(SCENE_OPENGL_BACKEND_SRCS
|
|
abstract_egl_backend.cpp
|
|
backend.cpp
|
|
swap_profiler.cpp
|
|
texture.cpp
|
|
)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
include(ECMQtDeclareLoggingCategory)
|
|
ecm_qt_declare_logging_category(SCENE_OPENGL_BACKEND_SRCS
|
|
HEADER
|
|
logging.h
|
|
IDENTIFIER
|
|
KWIN_OPENGL
|
|
CATEGORY_NAME
|
|
kwin_scene_opengl
|
|
DEFAULT_SEVERITY
|
|
Critical
|
|
)
|
|
|
|
add_library(SceneOpenGLBackend STATIC ${SCENE_OPENGL_BACKEND_SRCS})
|
|
target_link_libraries(SceneOpenGLBackend Qt5::Core Qt5::Widgets KF5::CoreAddons KF5::ConfigCore KF5::WindowSystem)
|