Skip to content

Commit aaa8e39

Browse files
author
Hidenori Matsubayashi
authored
Change output log level when the off-screen surface is invalid (sony#20)
1 parent a718896 commit aaa8e39

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/flutter/shell/platform/linux_embedded/surface/context_egl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class ContextEgl {
9292
EGLSurface surface = eglCreateWindowSurface(
9393
environment_->Display(), config_, window_resource->Window(), attribs);
9494
if (surface == EGL_NO_SURFACE) {
95-
LINUXES_LOG(ERROR) << "Failed to create EGL off-screen surface."
96-
<< "(" << get_egl_error_cause() << ")";
95+
LINUXES_LOG(WARNING) << "Failed to create EGL off-screen surface."
96+
<< "(" << get_egl_error_cause() << ")";
9797
}
9898
return std::make_unique<LinuxesEGLSurface>(surface, environment_->Display(),
9999
resource_context_);

src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl_drm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class SurfaceGlDrm final : public Surface<gbm_surface, gbm_surface>,
4747
bool SetNativeWindowResource(NativeWindow<gbm_surface, gbm_surface>* window) {
4848
offscreen_surface_ = context_->CreateOffscreenSurface(window);
4949
if (!offscreen_surface_->IsValid()) {
50-
LINUXES_LOG(ERROR) << "Off-Screen surface is invalid.";
50+
LINUXES_LOG(WARNING) << "Off-Screen surface is invalid.";
5151
offscreen_surface_ = nullptr;
5252
return false;
5353
}

src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl_wayland.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SurfaceGlWayland final : public Surface<wl_egl_window, wl_surface>,
5151
offscreen_surface_ =
5252
context_->CreateOffscreenSurface(native_window_resource_.get());
5353
if (!offscreen_surface_->IsValid()) {
54-
LINUXES_LOG(ERROR) << "Off-Screen surface is invalid.";
54+
LINUXES_LOG(WARNING) << "Off-Screen surface is invalid.";
5555
offscreen_surface_ = nullptr;
5656
return false;
5757
}

0 commit comments

Comments
 (0)