Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

jason-simmons
Copy link
Member

No description provided.

@fluttergithubbot
Copy link
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

final int desiredHeight = currentImage.getHeight();

currentBitmap =
android.graphics.Bitmap.createBitmap(
Copy link

Choose a reason for hiding this comment

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

nit: Bitmap.createBitmap

Feel free to address this later: The Android team suggested to reuse the bitmap.

Copy link
Member Author

@jason-simmons jason-simmons Jun 24, 2020

Choose a reason for hiding this comment

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

Done. Also added a check to reallocate the bitmap only if its dimensions are changing.

}

/**
* Invoked by the owner of this {@code FlutterTextureView} when it no longer wants to render a
Copy link

@blasten blasten Jun 24, 2020

Choose a reason for hiding this comment

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

nit: FlutterImageView here and below

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link

@blasten blasten left a comment

Choose a reason for hiding this comment

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

LGTM + nit

@jason-simmons jason-simmons force-pushed the hybrid_convert_image_view branch from b33dd4b to 43e2956 Compare June 24, 2020 20:56
@jason-simmons jason-simmons merged commit 0c14126 into flutter:master Jun 24, 2020
zhongwuzw pushed a commit to zhongwuzw/engine that referenced this pull request Jun 24, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants