Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 34f4f86

Browse files
committed
feedback2
1 parent c4eb82a commit 34f4f86

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

shell/platform/android/android_context_gl.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,11 @@ AndroidContextGL::~AndroidContextGL() {
204204

205205
std::unique_ptr<AndroidEGLSurface> AndroidContextGL::CreateOnscreenSurface(
206206
fml::RefPtr<AndroidNativeWindow> window) const {
207-
EGLDisplay display = environment_->Display();
208-
209207
if (window->IsFakeWindow()) {
210-
const EGLint attribs[] = {EGL_WIDTH, 1, EGL_HEIGHT, 1, EGL_NONE};
211-
212-
EGLSurface surface = eglCreatePbufferSurface(display, config_, attribs);
213-
return std::make_unique<AndroidEGLSurface>(surface, display, context_);
208+
return CreatePbufferSurface();
214209
} else {
210+
EGLDisplay display = environment_->Display();
211+
215212
const EGLint attribs[] = {EGL_NONE};
216213

217214
EGLSurface surface = eglCreateWindowSurface(

0 commit comments

Comments
 (0)