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

Issue 1225583003: Flush pending writes on Skia scratch textures used in Chromium (Closed)

Created:
5 years, 5 months ago by oetuaho-nv
Modified:
5 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, mlamouri+watch-media_chromium.org, reed1, bsalomon_chromium, no sievers, boliu, Sami
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Flush pending writes on Skia scratch textures used in Chromium Chromium uses textures allocated by Skia's internal resource manager for video rendering. In case the textures are recycled, they might have pending write operations on them. Most commonly they have a pending framebuffer discard that gets inserted when a texture is chosen for recycling. These pending operations need to be flushed before the texture is accessed outside of Skia. Otherwise it's possible that the pending operations get deferred until after Chromium uses the texture. In other words, we need to guarantee that the order of operations is: 1. Pending writes from Skia are flushed 2. Chromium writes to the texture without involving Skia 3. Chromium requests a readback of the texture using Skia 4. Skia reads back the texture instead of 1. Chromium writes to the texture without involving Skia 2. Chromium requests a readback of the texture using Skia 3. Pending writes from Skia are flushed 4. Skia reads back the texture BUG=504773, 499555 TEST=WebGL conformance tests Committed: https://crrev.com/140faf7e1dbc0f41a57242b4d3114bad6b9552fd Cr-Commit-Position: refs/heads/master@{#338089}

Patch Set 1 #

Patch Set 2 : Use flushSurfaceWrites() instead of flushWrites() #

Patch Set 3 : Use flushWrites() again #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M content/renderer/media/android/webmediaplayer_android.cc View 2 1 chunk +5 lines, -0 lines 0 comments Download
M media/blink/skcanvas_video_renderer.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (12 generated)
oetuaho-nv
Please review this bug fix!
5 years, 5 months ago (2015-07-03 14:02:11 UTC) #2
Ken Russell (switch to Gerrit)
reed@, bsalomon@: could one or both of you please review this bug fix? It seems ...
5 years, 5 months ago (2015-07-06 20:07:38 UTC) #3
Ken Russell (switch to Gerrit)
Olli, thanks very much for getting to the bottom of this. Your fix looks good ...
5 years, 5 months ago (2015-07-06 20:09:18 UTC) #4
bsalomon
We'd like to completely remove the wrapping of textures into bitmaps (and most direct uses ...
5 years, 5 months ago (2015-07-06 20:11:54 UTC) #6
oetuaho-nv
I wouldn't expect any performance impact from this since the pending writes will be executed ...
5 years, 5 months ago (2015-07-07 07:13:03 UTC) #7
oetuaho-nv
The patch still needs owner approval, adding xhwang, sandersd, wolenetz.
5 years, 5 months ago (2015-07-07 07:21:35 UTC) #9
DaleCurtis
I'll handle OWNERS stamp, but was waiting for qinmin to approve. If xhwang@ is comfortable ...
5 years, 5 months ago (2015-07-07 16:33:29 UTC) #11
qinmin
lgtm
5 years, 5 months ago (2015-07-07 17:03:36 UTC) #12
DaleCurtis
lgtm
5 years, 5 months ago (2015-07-07 17:03:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225583003/1
5 years, 5 months ago (2015-07-07 17:05:56 UTC) #15
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-07 17:06:00 UTC) #16
Ken Russell (switch to Gerrit)
On 2015/07/07 17:06:00, commit-bot: I haz the power wrote: > The author mailto:oetuaho@nvidia.com has not ...
5 years, 5 months ago (2015-07-07 17:20:10 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/70947) (exceeded global retry quota)
5 years, 5 months ago (2015-07-07 17:20:40 UTC) #19
Ken Russell (switch to Gerrit)
On 2015/07/07 17:20:10, Ken Russell wrote: > On 2015/07/07 17:06:00, commit-bot: I haz the power ...
5 years, 5 months ago (2015-07-07 17:38:33 UTC) #20
oetuaho-nv
On 2015/07/07 17:38:33, Ken Russell wrote: > It looks like there are some legitimate compile ...
5 years, 5 months ago (2015-07-08 13:33:33 UTC) #21
bsalomon
On 2015/07/08 13:33:33, oetuaho-nv wrote: > On 2015/07/07 17:38:33, Ken Russell wrote: > > It ...
5 years, 5 months ago (2015-07-08 14:46:36 UTC) #22
oetuaho-nv
On 2015/07/08 14:46:36, bsalomon wrote: > That is purely an oversight. I'm landing > https://codereview.chromium.org/1209043012/ ...
5 years, 5 months ago (2015-07-09 10:58:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225583003/40001
5 years, 5 months ago (2015-07-09 10:58:49 UTC) #26
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-09 10:58:57 UTC) #27
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-09 11:01:27 UTC) #28
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-09 11:31:33 UTC) #29
commit-bot: I haz the power
Failed to apply the patch.
5 years, 5 months ago (2015-07-09 11:59:34 UTC) #31
oetuaho-nv
What does "Failed to apply the patch" signify? Do I need to rebase and try ...
5 years, 5 months ago (2015-07-09 14:10:46 UTC) #33
DaleCurtis
Yes, that's generally what it means.
5 years, 5 months ago (2015-07-09 16:42:48 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225583003/60001
5 years, 5 months ago (2015-07-09 16:48:58 UTC) #37
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-09 16:49:07 UTC) #38
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-09 17:02:18 UTC) #39
DaleCurtis
Looks like the CLA tool is still broken, kbr@ did anything come of that internal ...
5 years, 5 months ago (2015-07-09 17:03:35 UTC) #40
oetuaho-nv
Patches should still be able to land even with the CLA nags until next week ...
5 years, 5 months ago (2015-07-09 17:06:33 UTC) #41
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-09 17:34:51 UTC) #42
commit-bot: I haz the power
The author oetuaho@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-09 18:05:56 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-09 18:14:27 UTC) #44
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/140faf7e1dbc0f41a57242b4d3114bad6b9552fd Cr-Commit-Position: refs/heads/master@{#338089}
5 years, 5 months ago (2015-07-09 18:15:31 UTC) #45
Ken Russell (switch to Gerrit)
5 years, 5 months ago (2015-07-09 22:20:13 UTC) #46
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1226093008/ by kbr@chromium.org.

The reason for reverting is: Broke three video-related WebGL conformance tests
on Nexus 5; see https://code.google.com/p/chromium/issues/detail?id=504773#c3 .
.

Powered by Google App Engine
This is Rietveld 408576698