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

Issue 1276713002: SkSurface copy-on-write can yield stale GPU render targets. (Closed)

Created:
5 years, 4 months ago by f(malita)
Modified:
5 years, 4 months ago
Reviewers:
bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkSurface copy-on-write can yield stale GPU render targets. Prepare_rt_for_external_access() grabs the render target and then fires access notifications. But the notification handlers may trigger copy-on-write, causing the returned render target to be stale (pointing at the detached snapshot). We should grab the render target after firing notifications. R=reed@google.com,bsalomon@google.com Committed: https://skia.googlesource.com/skia/+/e2639089bddc4fbb129ae039cb12c01be087b397

Patch Set 1 #

Patch Set 2 : comment type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
M src/image/SkSurface_Gpu.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M tests/SurfaceTest.cpp View 1 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276713002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276713002/20001
5 years, 4 months ago (2015-08-05 22:25:45 UTC) #2
f(malita)
5 years, 4 months ago (2015-08-05 22:29:25 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-05 22:33:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276713002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276713002/20001
5 years, 4 months ago (2015-08-06 00:26:49 UTC) #7
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 4 months ago (2015-08-06 00:26:50 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 4 months ago (2015-08-06 06:26:11 UTC) #10
reed1
code change seems fine. brian - is this the cleanest way to test for cow?
5 years, 4 months ago (2015-08-06 13:15:30 UTC) #11
bsalomon
On 2015/08/06 13:15:30, reed1 wrote: > code change seems fine. > > brian - is ...
5 years, 4 months ago (2015-08-06 13:59:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276713002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276713002/20001
5 years, 4 months ago (2015-08-06 14:04:28 UTC) #14
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 14:04:55 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/e2639089bddc4fbb129ae039cb12c01be087b397

Powered by Google App Engine
This is Rietveld 408576698