# HG changeset patch # User Benjamin Golinvaux # Date 1585923204 -7200 # Node ID 1b24f6b06408c74d28f067dd5ee2648183332524 # Parent b1396be5aa277fc36a4b3ca974b2183df27c93be removed obsolete comments diff -r b1396be5aa27 -r 1b24f6b06408 Applications/Generic/GuiAdapter.cpp --- a/Applications/Generic/GuiAdapter.cpp Fri Apr 03 16:13:06 2020 +0200 +++ b/Applications/Generic/GuiAdapter.cpp Fri Apr 03 16:13:24 2020 +0200 @@ -263,7 +263,6 @@ EmscriptenSetCallbackFunc emFunc, void* userData, GenericFunc func) { - // LOG(ERROR) << "SetAnimationFrameCallback !!!!!! (RequestAnimationFrame)"; std::unique_ptr > payload( new FuncAdapterPayload() ); @@ -375,9 +374,6 @@ void GuiAdapter::RequestAnimationFrame( OnAnimationFrameFunc func, void* userData) { - // LOG(ERROR) << "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"; - // LOG(ERROR) << "RequestAnimationFrame"; - // LOG(ERROR) << "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"; SetAnimationFrameCallback( &emscripten_request_animation_frame_loop, userData, diff -r b1396be5aa27 -r 1b24f6b06408 Framework/OpenGL/WebAssemblyOpenGLContext.cpp --- a/Framework/OpenGL/WebAssemblyOpenGLContext.cpp Fri Apr 03 16:13:06 2020 +0200 +++ b/Framework/OpenGL/WebAssemblyOpenGLContext.cpp Fri Apr 03 16:13:24 2020 +0200 @@ -200,49 +200,6 @@ { } - //bool WebAssemblyOpenGLContext::TryRecreate() - //{ - // // LOG(ERROR) << "WebAssemblyOpenGLContext::TryRecreate() trying to recreate context"; - // try - // { - // std::string canvasId = GetCanvasIdentifier(); - // pimpl_.reset(new PImpl(canvasId)); - - // // no exception does not mean the context is fully - // // functional! Most probably, if we have >= than 16 - // // contexts, context wil remain lost for some time - // bool lost = IsContextLost(); - // if (lost) { - // // LOG(ERROR) << "WebAssemblyOpenGLContext::TryRecreate() context is still lost!"; - // return false; - // } else { - // return true; - // } - // } - // catch (const Orthanc::OrthancException& e) - // { - // if (e.HasDetails()) - // { - // LOG(ERROR) << "OrthancException in WebAssemblyOpenGLContext::TryRecreate: " << e.What() << " Details: " << e.GetDetails(); - // } - // else - // { - // LOG(ERROR) << "OrthancException in WebAssemblyOpenGLContext::TryRecreate: " << e.What(); - // } - // return false; - // } - // catch (const std::exception& e) - // { - // LOG(ERROR) << "std::exception in WebAssemblyOpenGLContext::TryRecreate: " << e.what(); - // return false; - // } - // catch (...) - // { - // LOG(ERROR) << "Unknown exception WebAssemblyOpenGLContext::in TryRecreate"; - // return false; - // } - //} - bool WebAssemblyOpenGLContext::IsContextLost() { return pimpl_->IsContextLost();