Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Issue 900943002: No more caching volatile bitmaps (Closed)

Created:
5 years, 10 months ago by sugoi1
Modified:
5 years, 10 months ago
Reviewers:
bsalomon, reed1
CC:
reviews_skia.org, rileya (GONE FROM CHROMIUM), dshwang, Daniel Bratell
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

No more caching volatile bitmaps VideoFrames are always marked as volatile and load_yuv_texture() was caching everything, even volatile bitmaps. To solve this issue, we no longer cache volatile bitmaps' YUV planes in load_yuv_texture(). There is another issue which cause this to happen, related to how VideoImageGenerator::onGetYUV8Planes() is implemented, which is logged here: crbug.com/455235 BUG=450706, 450699 Committed: https://skia.googlesource.com/skia/+/ba18f91b9f025dc53ab3cb19ea1407c55ad85937

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use optionalKey instead of a cache bool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -7 lines) Patch
M src/gpu/SkGr.cpp View 1 3 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
sugoi1
Let's see if this fixes the video frame issues.
5 years, 10 months ago (2015-02-04 17:13:55 UTC) #2
bsalomon
https://codereview.chromium.org/900943002/diff/1/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp (right): https://codereview.chromium.org/900943002/diff/1/src/gpu/SkGr.cpp#newcode318 src/gpu/SkGr.cpp:318: const SkBitmap& bm, const GrSurfaceDesc& desc, bool cache) { ...
5 years, 10 months ago (2015-02-04 17:19:34 UTC) #3
sugoi1
https://codereview.chromium.org/900943002/diff/1/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp (right): https://codereview.chromium.org/900943002/diff/1/src/gpu/SkGr.cpp#newcode318 src/gpu/SkGr.cpp:318: const SkBitmap& bm, const GrSurfaceDesc& desc, bool cache) { ...
5 years, 10 months ago (2015-02-04 17:59:51 UTC) #4
bsalomon
Adding Mike, I don't really know that the contracts here are supposed be.
5 years, 10 months ago (2015-02-04 18:25:10 UTC) #6
bsalomon
Ok, I took another look. So this seems like a correct change to not cache ...
5 years, 10 months ago (2015-02-04 18:43:01 UTC) #7
sugoi1
On 2015/02/04 18:43:01, bsalomon wrote: > Ok, I took another look. So this seems like ...
5 years, 10 months ago (2015-02-04 18:46:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/900943002/20001
5 years, 10 months ago (2015-02-04 18:47:31 UTC) #10
reed1
Here is the change to the YUV signature I have in flight. https://codereview.chromium.org/863053002/ It should ...
5 years, 10 months ago (2015-02-04 18:48:22 UTC) #11
sugoi1
On 2015/02/04 18:48:22, reed1 wrote: > Here is the change to the YUV signature I ...
5 years, 10 months ago (2015-02-04 18:52:52 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 18:53:08 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/ba18f91b9f025dc53ab3cb19ea1407c55ad85937

Powered by Google App Engine
This is Rietveld 408576698