@@ -59,7 +59,7 @@ static void EglThreadExitCallback(void* key_value) {
5959static void MakeEglReleaseThreadKey () {
6060 int err = pthread_key_create (&egl_release_thread_key, EglThreadExitCallback);
6161 if (err) {
62- ABSL_LOG (ERROR) << " cannot create pthread key: " << err;
62+ ABSL_LOG (ERROR) << " cannot create pthread key: " << err;
6363 }
6464}
6565
@@ -75,14 +75,14 @@ static void EnsureEglThreadRelease() {
7575static absl::StatusOr<EGLDisplay> GetInitializedDefaultEglDisplay () {
7676 EGLDisplay display = eglGetDisplay (EGL_DEFAULT_DISPLAY);
7777 RET_CHECK (display != EGL_NO_DISPLAY)
78- << " eglGetDisplay() returned error " << std::showbase << std::hex
78+ << " eglGetDisplay() returned error " << std::showbase << std::hex
7979 << eglGetError ();
8080
8181 EGLint major = 0 ;
8282 EGLint minor = 0 ;
8383 EGLBoolean egl_initialized = eglInitialize (display, &major, &minor);
84- RET_CHECK (egl_initialized) << " Unable to initialize EGL" ;
85- ABSL_LOG (INFO) << " Successfully initialized EGL. Major : " << major
84+ RET_CHECK (egl_initialized) << " Unable to initialize EGL" ;
85+ ABSL_LOG (INFO) << " Successfully initialized EGL. Major : " << major
8686 << " Minor: " << minor;
8787
8888 return display;
@@ -143,12 +143,12 @@ absl::Status GlContext::CreateContextInternal(EGLContext share_context,
143143 eglChooseConfig (display_, config_attr, &config_, 1 , &num_configs);
144144 if (!success) {
145145 return ::mediapipe::UnknownErrorBuilder (MEDIAPIPE_LOC)
146- << " eglChooseConfig() returned error " << std::showbase << std::hex
146+ << " eglChooseConfig() returned error " << std::showbase << std::hex
147147 << eglGetError ();
148148 }
149149 if (!num_configs) {
150150 return mediapipe::UnknownErrorBuilder (MEDIAPIPE_LOC)
151- << " eglChooseConfig() returned no matching EGL configuration for "
151+ << " eglChooseConfig() returned no matching EGL configuration for "
152152 << " RGBA8888 D16 ES" << gl_version << " request. " ;
153153 }
154154
@@ -162,11 +162,11 @@ absl::Status GlContext::CreateContextInternal(EGLContext share_context,
162162 context_ = eglCreateContext (display_, config_, share_context, context_attr);
163163 int error = eglGetError ();
164164 RET_CHECK (context_ != EGL_NO_CONTEXT)
165- << " Could not create GLES " << gl_version << " context; "
165+ << " Could not create GLES " << gl_version << " context; "
166166 << " eglCreateContext() returned error " << std::showbase << std::hex
167167 << error
168168 << (error == EGL_BAD_CONTEXT
169- ? " : external context uses a different version of OpenGL"
169+ ? " : external context uses a different version of OpenGL"
170170 : " " );
171171
172172 // We can't always rely on GL_MAJOR_VERSION and GL_MINOR_VERSION, since
@@ -181,9 +181,9 @@ absl::Status GlContext::CreateContext(EGLContext share_context) {
181181
182182 auto status = CreateContextInternal (share_context, 3 );
183183 if (!status.ok ()) {
184- ABSL_LOG (WARNING) << " Creating a context with OpenGL ES 3 failed: "
184+ ABSL_LOG (WARNING) << " Creating a context with OpenGL ES 3 failed: "
185185 << status;
186- ABSL_LOG (WARNING) << " Fall back on OpenGL ES 2." ;
186+ ABSL_LOG (WARNING) << " Fall back on OpenGL ES 2." ;
187187 status = CreateContextInternal (share_context, 2 );
188188 }
189189 MP_RETURN_IF_ERROR (status);
@@ -192,7 +192,7 @@ absl::Status GlContext::CreateContext(EGLContext share_context) {
192192
193193 surface_ = eglCreatePbufferSurface (display_, config_, pbuffer_attr);
194194 RET_CHECK (surface_ != EGL_NO_SURFACE)
195- << " eglCreatePbufferSurface() returned error " << std::showbase
195+ << " eglCreatePbufferSurface() returned error " << std::showbase
196196 << std::hex << eglGetError ();
197197
198198 return absl::OkStatus ();
@@ -238,20 +238,20 @@ void GlContext::DestroyContext() {
238238 if (IsCurrent ()) {
239239 if (!eglMakeCurrent (display_, EGL_NO_SURFACE, EGL_NO_SURFACE,
240240 EGL_NO_CONTEXT)) {
241- ABSL_LOG (ERROR) << " eglMakeCurrent() returned error " << std::showbase
241+ ABSL_LOG (ERROR) << " eglMakeCurrent() returned error " << std::showbase
242242 << std::hex << eglGetError ();
243243 }
244244 }
245245 if (surface_ != EGL_NO_SURFACE) {
246246 if (!eglDestroySurface (display_, surface_)) {
247- ABSL_LOG (ERROR) << " eglDestroySurface() returned error " << std::showbase
247+ ABSL_LOG (ERROR) << " eglDestroySurface() returned error " << std::showbase
248248 << std::hex << eglGetError ();
249249 }
250250 surface_ = EGL_NO_SURFACE;
251251 }
252252 if (context_ != EGL_NO_CONTEXT) {
253253 if (!eglDestroyContext (display_, context_)) {
254- ABSL_LOG (ERROR) << " eglDestroyContext() returned error " << std::showbase
254+ ABSL_LOG (ERROR) << " eglDestroyContext() returned error " << std::showbase
255255 << std::hex << eglGetError ();
256256 }
257257 context_ = EGL_NO_CONTEXT;
@@ -300,7 +300,7 @@ absl::Status GlContext::SetCurrentContextBinding(
300300 EGLBoolean success =
301301 eglMakeCurrent (display, new_binding.draw_surface ,
302302 new_binding.read_surface , new_binding.context );
303- RET_CHECK (success) << " eglMakeCurrent() returned error " << std::showbase
303+ RET_CHECK (success) << " eglMakeCurrent() returned error " << std::showbase
304304 << std::hex << eglGetError ();
305305 return absl::OkStatus ();
306306}
0 commit comments