summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorHuzaifa Iftikhar <huzaifa3196@gmail.com>2016-12-26 02:51:03 +0530
committerMichael Stahl <mstahl@redhat.com>2017-01-04 16:02:26 +0000
commitda7b10018433946dd0e0125ec5316dbe8c8b683c (patch)
treed03b9d6d1162997efa5488d62983940085a06a88 /vcl/opengl
parent4dad0c5b1ee1a243fbccd45ef2fc97b78aaa30a2 (diff)
tdf#97228 Moved class ControlCacheKey in a seperate include file.
class ControlCacheKey defined in include/vcl/salnativewidgets.hxx is used only by vcl therefore it is moved to a seperate include file named ControlCacheKey.hxx which is inside vcl/inc/ControlCacheKey.hxx. This header file contains the definition of the the class ControlCacheKey. Since this class uses an object of another class named Size which is defined in gen.hxx therefore this is included in ControlCacheKey.hxx. All the files that references the class ControlCacheKey includes ControlCacheKey.hxx with the syntax: #include "ControlCacheKey.hxx" Change-Id: I7d7b3e1cf6950a953e6bbed670c1914826b2bacd Reviewed-on: https://gerrit.libreoffice.org/32422 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/win/gdiimpl.cxx1
-rw-r--r--vcl/opengl/x11/gdiimpl.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx
index ce61676ccdba..4209e0c41c49 100644
--- a/vcl/opengl/win/gdiimpl.cxx
+++ b/vcl/opengl/win/gdiimpl.cxx
@@ -17,6 +17,7 @@
#include <win/salframe.h>
#include <win/salinst.h>
#include <epoxy/wgl.h>
+#include "ControlCacheKey.hxx"
static std::vector<HGLRC> g_vShareList;
static bool g_bAnyCurrent;
diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx
index 164fc717e498..c6807de25066 100644
--- a/vcl/opengl/x11/gdiimpl.cxx
+++ b/vcl/opengl/x11/gdiimpl.cxx
@@ -30,6 +30,7 @@
#include <vcl/opengl/OpenGLHelper.hxx>
#include <o3tl/lru_map.hxx>
+#include "ControlCacheKey.hxx"
static std::vector<GLXContext> g_vShareList;
static bool g_bAnyCurrent;