-
Notifications
You must be signed in to change notification settings - Fork 6k
Initial work toward converting the FlutterView to use a FlutterImageView on demand #19279
Initial work toward converting the FlutterView to use a FlutterImageView on demand #19279
Conversation
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( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM + nit
b33dd4b
to
43e2956
Compare
…erImageView on demand (flutter/engine#19279)
No description provided.