comparison Framework/Viewport/WebGLViewportsRegistry.h @ 1242:b9b5d4378874 broker

working of WebAssemblyOracle
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jan 2020 18:08:05 +0100
parents e71ee3e88448
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1241:a4bb8c2dd211 1242:b9b5d4378874
34 * reinitialized by created a fresh HTML5 canvas. 34 * reinitialized by created a fresh HTML5 canvas.
35 **/ 35 **/
36 class WebGLViewportsRegistry : public boost::noncopyable 36 class WebGLViewportsRegistry : public boost::noncopyable
37 { 37 {
38 private: 38 private:
39 typedef std::map<std::string, WebGLViewport*> Viewports; 39 typedef std::map<std::string, boost::shared_ptr<WebGLViewport> > Viewports;
40 40
41 double timeoutMS_; 41 double timeoutMS_;
42 Viewports viewports_; 42 Viewports viewports_;
43 43
44 void LaunchTimer(); 44 void LaunchTimer();
53 ~WebGLViewportsRegistry() 53 ~WebGLViewportsRegistry()
54 { 54 {
55 Clear(); 55 Clear();
56 } 56 }
57 57
58 void Add(const std::string& canvasId); 58 boost::shared_ptr<WebGLViewport> Add(const std::string& canvasId);
59 59
60 void Remove(const std::string& canvasId); 60 void Remove(const std::string& canvasId);
61 61
62 void Clear(); 62 void Clear();
63 63