comparison Framework/Viewport/WebAssemblyViewport.h @ 1045:6a9300ecfa13

tests for context loss are now restricted to WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Oct 2019 17:17:56 +0200
parents a7351ad54960
children 3c9529edf5fd
comparison
equal deleted inserted replaced
1044:b60d70e8b55c 1045:6a9300ecfa13
63 return compositor_.get(); 63 return compositor_.get();
64 } 64 }
65 65
66 virtual void Refresh() ORTHANC_OVERRIDE; 66 virtual void Refresh() ORTHANC_OVERRIDE;
67 67
68 virtual bool IsContextLost() ORTHANC_OVERRIDE;
69
70 // this does NOT return whether the context is lost! This is called to 68 // this does NOT return whether the context is lost! This is called to
71 // tell Stone that the context has been lost 69 // tell Stone that the context has been lost
72 bool OpenGLContextLost(); 70 bool OpenGLContextLost();
73 71
74 // This should be called to indicate that the context has been lost 72 // This should be called to indicate that the context has been lost
75 bool OpenGLContextRestored(); 73 bool OpenGLContextRestored();
76 74
77
78 virtual void* DebugGetInternalContext() const ORTHANC_OVERRIDE;
79
80 private: 75 private:
81 virtual void DisableCompositor() ORTHANC_OVERRIDE; 76 void DisableCompositor();
82 virtual void RestoreCompositor() ORTHANC_OVERRIDE; 77 void RestoreCompositor();
83 78
84 void RegisterContextCallbacks(); 79 void RegisterContextCallbacks();
85 }; 80 };
86 81
87 class WebAssemblyCairoViewport : public WebAssemblyViewport 82 class WebAssemblyCairoViewport : public WebAssemblyViewport
103 virtual ICompositor* GetCompositor() 98 virtual ICompositor* GetCompositor()
104 { 99 {
105 return &compositor_; 100 return &compositor_;
106 } 101 }
107 }; 102 };
108
109 } 103 }