DescriptionConvert gfx::internal::ImageStorage RefCountedThreadSafe
gfx::internal::ImageStorage has non-thread-safe ref count, but the ref
count is accessed from multiple threads.
It is held by multiple gfx::Image instances, gfx::Image is held by
gfx::ImageFamily, and web_app::ShortcutInfo has gfx::ImageFamily.
Where, web_app::ShortcutInfo is created on UI thread, and destroyed
on FILE thread. Implies, the ref count of gfx::internal::ImageStorage
is touched from both FILE thread and UI thread, and causes a data
race.
This CL converts gfx::internal::ImageStorage from RefCounted to
RefCountedThreadSafe to avoid the race.
BUG=688072
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 10 (7 generated)
|