diff Framework/OpenGL/WebAssemblyOpenGLContext.h @ 1051:7fad86d62135

removed unused abstraction IOpenGLContextLossMonitor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Oct 2019 14:37:07 +0200
parents 6a9300ecfa13
children 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/OpenGL/WebAssemblyOpenGLContext.h	Thu Oct 10 14:31:56 2019 +0200
+++ b/Framework/OpenGL/WebAssemblyOpenGLContext.h	Thu Oct 10 14:37:07 2019 +0200
@@ -38,7 +38,6 @@
 #endif
 
 #include "IOpenGLContext.h"
-#include "IOpenGLContextLossMonitor.h"
 
 #include <Core/Enumerations.h>
 
@@ -48,9 +47,7 @@
 {
   namespace OpenGL
   {
-    class WebAssemblyOpenGLContext :
-      public OpenGL::IOpenGLContext,
-      public OpenGL::IOpenGLContextLossMonitor
+    class WebAssemblyOpenGLContext : public OpenGL::IOpenGLContext
     {
     private:
       class PImpl;
@@ -61,9 +58,6 @@
 
       virtual bool IsContextLost() ORTHANC_OVERRIDE;
 
-      virtual void SetLostContext() ORTHANC_OVERRIDE;
-      virtual void RestoreLostContext() ORTHANC_OVERRIDE;
-
       virtual void MakeCurrent() ORTHANC_OVERRIDE;
 
       virtual void SwapBuffer() ORTHANC_OVERRIDE;
@@ -72,8 +66,6 @@
 
       virtual unsigned int GetCanvasHeight() const ORTHANC_OVERRIDE;
 
-      virtual void* DebugGetInternalContext() const ORTHANC_OVERRIDE;
-
       /**
       Returns true if the underlying context has been successfully recreated
       */
@@ -82,6 +74,13 @@
       void UpdateSize();
 
       const std::string& GetCanvasIdentifier() const;
+
+
+      /**
+       * This is for manual context loss (debug purposes)
+       **/
+      void* DebugGetInternalContext() const;
+      void SetLostContext();
     };
   }
 }