diff Framework/Viewport/WebAssemblyViewport.h @ 910:a6c12fe88bcb

wip: WebAssemblyCairoViewport: still need to implement blit to canvas
author Alain Mazy <alain@mazy.be>
date Thu, 18 Jul 2019 10:39:00 +0200
parents 722ee73e6ba2
children 685c9a2d115f
line wrap: on
line diff
--- a/Framework/Viewport/WebAssemblyViewport.h	Thu Jul 18 09:41:10 2019 +0200
+++ b/Framework/Viewport/WebAssemblyViewport.h	Thu Jul 18 10:39:00 2019 +0200
@@ -68,21 +68,18 @@
   {
   private:
     CairoCompositor                  compositor_;
+    std::string                      canvas_;
 
   public:
-    WebAssemblyCairoViewport(const std::string& canvas, 
-                             unsigned int width, 
-                             unsigned int height);
+    WebAssemblyCairoViewport(const std::string& canvas);
     
     WebAssemblyCairoViewport(const std::string& canvas,
-                             boost::shared_ptr<Scene2D>& scene, 
-                             unsigned int width, 
-                             unsigned int height);
+                             boost::shared_ptr<Scene2D>& scene);
     
-    // This function must be called each time the browser window is resized
-    void UpdateSize(); // TODO: implement
+    void UpdateSize(); 
 
-    // TODO: implement Refresh
+    virtual void Refresh();
+
     virtual ICompositor& GetCompositor()
     {
       return compositor_;