Fixed
Status Update
Comments
am...@google.com <am...@google.com>
am...@google.com <am...@google.com> #2
This issue does not reproduce with dev preview 4.
am...@google.com <am...@google.com> #3
Closing this issue as per comment #2 from reporter.
[Deleted User] <[Deleted User]> #4
I have the exact same issue. Pixel XL 7.1.2 vs Pixel XL 8.0 (official Oreo release) it takes 10 times more exactly to draw images on canvas. Same code same device different OS Version. Can you please let us know when this will be fixed ? It looks like an important issue. Apps drawing videoframes in a canvas get 4 fps because of this bug. This should be fixed in my opinion. Currently our app is broken on Oreo because of that. I am talking about the official Oreo image not the dev preview.
ph...@sprylab.com <ph...@sprylab.com> #5
I second this - Oreo does not perform as good on a Nexus 5X (e.g. recents ist pretty broken, scrolling views often lag behind and are not smooth)
rr...@trackview.co <rr...@trackview.co> #6
We had the same issue. What we do is drawing a RGB565 bitmap to a canvas. The drawBitmap call takes 130ms to return. Tested on Nexus 5x with 8.0.0.
This will break a lot of apps. Please increase the priority.
This will break a lot of apps. Please increase the priority.
am...@google.com <am...@google.com> #7
Our engineering team has fixed this issue. It will be available in a future Android release, so please keep an eye on the release notes https://developer.android.com/preview/release-notes.html .
pk...@gmail.com <pk...@gmail.com> #8
Please include the fix into nearest release if possible - my software for navigation on Oreo remains virtually unusable. Thanks in advance.
pa...@gmail.com <pa...@gmail.com> #9
Possibly the issue is not fixed. Some improvemets were made but still exists a problem when drawing a bitmap created with Bitmap.createBitmap(dm.widthPixels, dm.heightPixels, Bitmap.Config.RGB_565). The new issue was created.
https://issuetracker.google.com/issues/70113293
Description
Please look below sample program.
/*****************************************/
Rect dstrect = new Rect(0, 0, 1280, 720);
Bitmap bitmap = Bitmap.createBitmap(1280, 720, Bitmap.Config.RGB_565);
Bitmap bitmap2 = Bitmap.createBitmap(1920, 1080, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
StopWatch sw = new StopWatch();
for(int i=0; i<20; i++) {
canvas.drawBitmap(bitmap2, null, dstrect, paint);
}
Log.d("sample", "time = "+sw.getDiff()+"[ms]");
/*****************************************/
When I run the code on Android 7.1.2(Nexus5X), it was showen "time = 287[ms]".
When I run the code on Android O DP4(Nexus5X), it was showen "time = 2420[ms]".
Why does it takes times of 10 times when I run the code on Android O DP4?
I attached sample code that you can see this problem.
And, I attached two screenshots.