@@ -45,11 +45,11 @@ static void OnCollectTexture(void* textureGL) {
4545}
4646
4747ExternalTextureSurfaceGL::ExternalTextureSurfaceGL (
48- ExternalTextureExtensionType gl_extention ,
48+ ExternalTextureExtensionType gl_extension ,
4949 FlutterDesktopGpuBufferTextureCallback texture_callback,
5050 FlutterDesktopGpuBufferDestructionCallback destruction_callback,
5151 void * user_data)
52- : ExternalTexture(gl_extention ),
52+ : ExternalTexture(gl_extension ),
5353 texture_callback_ (texture_callback),
5454 destruction_callback_(destruction_callback),
5555 user_data_(user_data) {}
@@ -90,12 +90,12 @@ bool ExternalTextureSurfaceGL::PopulateTexture(
9090
9191#ifdef TIZEN_RENDERER_EVAS_GL
9292 EvasGLImage egl_src_image = nullptr ;
93- if (state_->gl_extention == ExternalTextureExtensionType::kNativeSurface ) {
93+ if (state_->gl_extension == ExternalTextureExtensionType::kNativeSurface ) {
9494 int attribs[] = {EVAS_GL_IMAGE_PRESERVED, GL_TRUE, 0 };
9595 egl_src_image = evasglCreateImageForContext (
9696 g_evas_gl, evas_gl_current_context_get (g_evas_gl),
9797 EVAS_GL_NATIVE_SURFACE_TIZEN, tbm_surface, attribs);
98- } else if (state_->gl_extention == ExternalTextureExtensionType::kDmaBuffer ) {
98+ } else if (state_->gl_extension == ExternalTextureExtensionType::kDmaBuffer ) {
9999 FT_LOG (Error)
100100 << " EGL_EXT_image_dma_buf_import is not supported this renderer." ;
101101 return false ;
@@ -127,13 +127,13 @@ bool ExternalTextureSurfaceGL::PopulateTexture(
127127 eglGetProcAddress (" eglCreateImageKHR" ));
128128 EGLImageKHR egl_src_image = nullptr ;
129129
130- if (state_->gl_extention == ExternalTextureExtensionType::kNativeSurface ) {
130+ if (state_->gl_extension == ExternalTextureExtensionType::kNativeSurface ) {
131131 const EGLint attribs[] = {EGL_IMAGE_PRESERVED_KHR, EGL_TRUE, EGL_NONE,
132132 EGL_NONE};
133133 egl_src_image =
134134 n_eglCreateImageKHR (eglGetCurrentDisplay (), EGL_NO_CONTEXT,
135135 EGL_NATIVE_SURFACE_TIZEN, tbm_surface, attribs);
136- } else if (state_->gl_extention == ExternalTextureExtensionType::kDmaBuffer ) {
136+ } else if (state_->gl_extension == ExternalTextureExtensionType::kDmaBuffer ) {
137137 EGLint attribs[50 ];
138138 int atti = 0 ;
139139 int plane_fd_ext[4 ] = {EGL_DMA_BUF_PLANE0_FD_EXT, EGL_DMA_BUF_PLANE1_FD_EXT,
@@ -172,7 +172,7 @@ bool ExternalTextureSurfaceGL::PopulateTexture(
172172 }
173173
174174 if (!egl_src_image) {
175- if (state_->gl_extention != ExternalTextureExtensionType::kNone ) {
175+ if (state_->gl_extension != ExternalTextureExtensionType::kNone ) {
176176 FT_LOG (Error) << " eglCreateImageKHR failed with an error "
177177 << eglGetError () << " for texture ID: " << texture_id_;
178178 } else {
0 commit comments