commit | 16a0d2a22d17e3932432dab4559e63c5134aaccc | [log] [tgz] |
---|---|---|
author | kkimlabs <kkimlabs@chromium.org> | Fri Apr 03 10:08:09 2015 |
committer | Commit bot <commit-bot@chromium.org> | Fri Apr 03 10:08:37 2015 |
tree | cb3602e115c8dc531195283d2c417825005f00ad | |
parent | a4c00a7ec01b3308c98cfad88b4bf3af1b4fde2b [diff] |
Fix crashes due to gfx::Image unsafe thread passing gfx::Image has |storage_| member which is base::RefCounted, not thread safe. Thus passing around gfx::Image to other threads by copying is incorrect. Workaround by using scoped_ptr and making ImageRecord class RefCountedThreadSafe. Related discussion: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8LqVoXQ_2bo BUG=471800 Review URL: https://codereview.chromium.org/1031293002 Cr-Commit-Position: refs/heads/master@{#323720}