Project import generated by Copybara.

GitOrigin-RevId: e9b30181bd6a75481835643d6f48c1c05730ff87
This commit is contained in:
MediaPipe Team
2020-08-05 22:14:25 -04:00
committed by chuoling
parent 2f86a459b6
commit 6b0ab0e012
7 changed files with 37 additions and 13 deletions
+5 -2
View File
@@ -141,8 +141,8 @@ GlContext::StatusOrGlContext GlContext::Create(
}
MP_RETURN_IF_ERROR(status);
LOG(INFO) << "Successfully created a WebGL Context with major version "
<< gl_major_version_ << " and context " << context_;
LOG(INFO) << "Successfully created a WebGL context with major version "
<< gl_major_version_ << " and handle " << context_;
return ::mediapipe::OkStatus();
}
@@ -158,6 +158,9 @@ void GlContext::DestroyContext() {
EMSCRIPTEN_RESULT res = emscripten_webgl_destroy_context(context_);
if (res != EMSCRIPTEN_RESULT_SUCCESS) {
LOG(ERROR) << "emscripten_webgl_destroy_context() returned error " << res;
} else {
LOG(INFO) << "Successfully destroyed WebGL context with handle "
<< context_;
}
context_ = 0;
}