commit | e2639089bddc4fbb129ae039cb12c01be087b397 | [log] [tgz] |
---|---|---|
author | fmalita <fmalita@chromium.org> | Thu Aug 06 07:04:51 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Aug 06 07:04:52 2015 -0700 |
tree | b433fda0c3bab0c3a713b0ae2bb56b6aefa4b5cb | |
parent | ebe06c0560bb2e8e8a13c4ede1ce7481c88554a4 [diff] |
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 Review URL: https://codereview.chromium.org/1276713002