Mercurial > hg > orthanc-stone
changeset 1338:1b24f6b06408 broker
removed obsolete comments
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 03 Apr 2020 16:13:24 +0200 |
parents | b1396be5aa27 |
children | 556b4bc19118 |
files | Applications/Generic/GuiAdapter.cpp Framework/OpenGL/WebAssemblyOpenGLContext.cpp |
diffstat | 2 files changed, 0 insertions(+), 47 deletions(-) [+] |
line wrap: on
line diff
--- 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<FuncAdapterPayload<GenericFunc> > payload( new FuncAdapterPayload<GenericFunc>() ); @@ -375,9 +374,6 @@ void GuiAdapter::RequestAnimationFrame( OnAnimationFrameFunc func, void* userData) { - // LOG(ERROR) << "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"; - // LOG(ERROR) << "RequestAnimationFrame"; - // LOG(ERROR) << "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"; SetAnimationFrameCallback<OnAnimationFrameFunc>( &emscripten_request_animation_frame_loop, userData,
--- 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();