@@ -15,7 +15,7 @@ ContextEgl::ContextEgl(std::unique_ptr<EnvironmentEgl> environment,
15
15
: environment_(std::move(environment)), config_(nullptr ) {
16
16
EGLint config_count = 0 ;
17
17
const EGLint attribs[] = {
18
- // clang-format off
18
+ // clang-format off
19
19
EGL_SURFACE_TYPE, egl_surface_type,
20
20
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
21
21
EGL_RED_SIZE, 8 ,
@@ -27,10 +27,10 @@ ContextEgl::ContextEgl(std::unique_ptr<EnvironmentEgl> environment,
27
27
EGL_DEPTH_SIZE, 0 ,
28
28
EGL_STENCIL_SIZE, 0 ,
29
29
EGL_NONE
30
- // clang-format on
30
+ // clang-format on
31
31
};
32
32
const EGLint impeller_config_attributes[] = {
33
- // clang-format off
33
+ // clang-format off
34
34
EGL_RED_SIZE, 8 ,
35
35
EGL_GREEN_SIZE, 8 ,
36
36
EGL_BLUE_SIZE, 8 ,
@@ -42,10 +42,10 @@ ContextEgl::ContextEgl(std::unique_ptr<EnvironmentEgl> environment,
42
42
EGL_SAMPLE_BUFFERS, 1 ,
43
43
EGL_SAMPLES, 4 ,
44
44
EGL_NONE
45
- // clang-format on
45
+ // clang-format on
46
46
};
47
47
const EGLint impeller_config_attributes_no_msaa[] = {
48
- // clang-format off
48
+ // clang-format off
49
49
EGL_RED_SIZE, 8 ,
50
50
EGL_GREEN_SIZE, 8 ,
51
51
EGL_BLUE_SIZE, 8 ,
@@ -55,7 +55,7 @@ ContextEgl::ContextEgl(std::unique_ptr<EnvironmentEgl> environment,
55
55
EGL_DEPTH_SIZE, 0 ,
56
56
EGL_STENCIL_SIZE, 8 ,
57
57
EGL_NONE
58
- // clang-format on
58
+ // clang-format on
59
59
};
60
60
61
61
if (enable_impeller) {
@@ -136,8 +136,8 @@ std::unique_ptr<ELinuxEGLSurface> ContextEgl::CreateOffscreenSurface(
136
136
EGLSurface surface =
137
137
eglCreatePbufferSurface (environment_->Display (), config_, attribs);
138
138
if (surface == EGL_NO_SURFACE) {
139
- ELINUX_LOG (WARNING) << " Failed to create EGL off-screen surface."
140
- << " ( " << get_egl_error_cause () << " )" ;
139
+ ELINUX_LOG (WARNING) << " Failed to create EGL off-screen surface." << " ( "
140
+ << get_egl_error_cause () << " )" ;
141
141
}
142
142
#else
143
143
// eglCreatePbufferSurface isn't supported on both Wayland and GBM.
@@ -146,8 +146,8 @@ std::unique_ptr<ELinuxEGLSurface> ContextEgl::CreateOffscreenSurface(
146
146
EGLSurface surface = eglCreateWindowSurface (
147
147
environment_->Display (), config_, window->WindowOffscreen (), attribs);
148
148
if (surface == EGL_NO_SURFACE) {
149
- ELINUX_LOG (WARNING) << " Failed to create EGL off-screen surface."
150
- << " ( " << get_egl_error_cause () << " )" ;
149
+ ELINUX_LOG (WARNING) << " Failed to create EGL off-screen surface." << " ( "
150
+ << get_egl_error_cause () << " )" ;
151
151
}
152
152
#endif
153
153
return std::make_unique<ELinuxEGLSurface>(surface, environment_->Display (),
0 commit comments