Skip to content

Commit

Permalink
Update deprecated UnregisterTexture usage (flutter-tizen#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim authored Jun 1, 2023
1 parent 3f5dd7e commit 101be01
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/camera/tizen/src/camera_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ void CameraDevice::Dispose() {
}

if (texture_id_ != 0) {
registrar_->texture_registrar()->UnregisterTexture(texture_id_);
registrar_->texture_registrar()->UnregisterTexture(texture_id_, nullptr);
}

if (current_packet_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void FlutterVideoRendererManager::VideoRendererDispose(
int64_t texture_id, std::unique_ptr<MethodResultProxy> result) {
auto it = renderers_.find(texture_id);
if (it != renderers_.end()) {
base_->textures_->UnregisterTexture(texture_id);
base_->textures_->UnregisterTexture(texture_id, nullptr);
renderers_.erase(it);
result->Success();
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/tizen/src/video_player.cc
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ void VideoPlayer::Dispose() {
previous_media_packet_ = nullptr;
}
if (texture_registrar_) {
texture_registrar_->UnregisterTexture(texture_id_);
texture_registrar_->UnregisterTexture(texture_id_, nullptr);
texture_registrar_ = nullptr;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/webview_flutter/tizen/src/webview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ std::string WebView::GetNavigationDelegateChannelName() {
}

void WebView::Dispose() {
texture_registrar_->UnregisterTexture(GetTextureId());
texture_registrar_->UnregisterTexture(GetTextureId(), nullptr);

if (webview_instance_) {
evas_object_smart_callback_del(webview_instance_,
Expand Down
2 changes: 1 addition & 1 deletion packages/webview_flutter_lwe/tizen/src/webview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ std::string WebView::GetNavigationDelegateChannelName() {
}

void WebView::Dispose() {
texture_registrar_->UnregisterTexture(GetTextureId());
texture_registrar_->UnregisterTexture(GetTextureId(), nullptr);

if (webview_instance_) {
webview_instance_->Destroy();
Expand Down

0 comments on commit 101be01

Please sign in to comment.