Skip to content

Conversation

@bbrto21
Copy link
Contributor

@bbrto21 bbrto21 commented Sep 5, 2022

* Contributes to flutter-tizen/engine/issues/285.
* This change depends on flutter-tizen/engine/pull/338.

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Comment on lines 350 to 353
flutter_desktop_gpu_buffer_->width = width;
flutter_desktop_gpu_buffer_->visible_width = width;
flutter_desktop_gpu_buffer_->height = height;
flutter_desktop_gpu_buffer_->visible_height = height;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These four values are unused by the embedder so I think you can remove the lines (or at least visible_*).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed them from all over this PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, we still keep width and height although they are unused.

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
gpu_surface_->width = width;
gpu_surface_->height = height;
gpu_surface_->release_callback = [](void *release_context) {
CameraDevice *cd = (CameraDevice *)release_context;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need another PR to do some refactoring (to fix the C type cast).

Copy link
Contributor Author

@bbrto21 bbrto21 Sep 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think another PR is better.

@bbrto21
Copy link
Contributor Author

bbrto21 commented Sep 6, 2022

no merge label will be removed when flutter-tizen updated with latest engine.

@swift-kim swift-kim removed the no merge This PR is not ready for merge yet label Sep 8, 2022
@swift-kim swift-kim merged commit 87d03be into flutter-tizen:master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to the new GpuBufferTexture API

2 participants