Skip to content

Commit

Permalink
Remove not used code
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Jun 18, 2024
1 parent 4fb809c commit 842b124
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ bool ExternalTexturePixelEGLImpeller::PopulateTexture(
size_t width,
size_t height,
FlutterOpenGLTexture* opengl_texture) {
FT_LOG(Error) << "PopulateTexture";
if (!texture_callback_) {
return false;
}
Expand Down Expand Up @@ -49,8 +48,6 @@ ExternalTexturePixelEGLImpeller::ExternalTexturePixelEGLImpeller(
void* user_data)
: ExternalTexture(),
texture_callback_(texture_callback),
user_data_(user_data) {
FT_LOG(Error) << "ExternalTexturePixelEGLImpeller";
}
user_data_(user_data) {}

} // namespace flutter
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool ExternalTextureSurfaceEGLImpeller::PopulateTexture(
opengl_texture->impeller_texture_type =
FlutterGLImpellerTextureType::kFlutterGLImpellerTextureGpuSuface;
opengl_texture->bind_callback = OnBindCallback;
opengl_texture->destruction_callback = OnDestruction;
opengl_texture->destruction_callback = nullptr;
opengl_texture->user_data = this;
opengl_texture->width = width;
opengl_texture->height = height;
Expand Down Expand Up @@ -185,6 +185,4 @@ bool ExternalTextureSurfaceEGLImpeller::OnBind() {
return true;
}

void ExternalTextureSurfaceEGLImpeller::OnDestruction(void* user_data) {}

} // namespace flutter
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class ExternalTextureSurfaceEGLImpeller : public ExternalTexture {

private:
static bool OnBindCallback(void* user_data);
static void OnDestruction(void* user_data);
bool CreateOrUpdateEglImage(
const FlutterDesktopGpuSurfaceDescriptor* descriptor);
void ReleaseImage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ namespace flutter {
FlutterTizenTextureRegistrar::FlutterTizenTextureRegistrar(
FlutterTizenEngine* engine,
bool enable_impeller)
: engine_(engine), enable_impeller_(enable_impeller) {
FT_LOG(Error) << "enable_impeller : " << enable_impeller_;
}
: engine_(engine), enable_impeller_(enable_impeller) {}

int64_t FlutterTizenTextureRegistrar::RegisterTexture(
const FlutterDesktopTextureInfo* texture_info) {
Expand Down

0 comments on commit 842b124

Please sign in to comment.