Mercurial > hg > orthanc-stone
diff Framework/OpenGL/IOpenGLContext.h @ 1482:5c96bf3f1d32
IOpenGL::RefreshCanvasSize()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 20 Jun 2020 11:08:28 +0200 |
parents | 2d8ab34c8c91 |
children |
line wrap: on
line diff
--- a/Framework/OpenGL/IOpenGLContext.h Fri Jun 19 18:43:09 2020 +0200 +++ b/Framework/OpenGL/IOpenGLContext.h Sat Jun 20 11:08:28 2020 +0200 @@ -43,6 +43,11 @@ virtual unsigned int GetCanvasWidth() const = 0; virtual unsigned int GetCanvasHeight() const = 0; + + // Getting the size of the canvas can be expensive, especially + // in WebAssembly => avoid calling this method too often + // (e.g. on each refresh) + virtual void RefreshCanvasSize() = 0; }; } }