[Webkit-unassigned] [Bug 106842] adding support for DiscardablePixelRef for caching lazily decoded images

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 28 21:35:33 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=106842





--- Comment #113 from Hin-Chung Lam <hclam at google.com>  2013-01-28 21:37:31 PST ---
(In reply to comment #98)
> (In reply to comment #96)
> > I submitted an unreviewed build fix: http://trac.webkit.org/changeset/141033
> > 
> > The use SkMutex is not necessary in this code so remove it would make Mac build happy. The reason for undefined reference is because of component build and SK_API.
> 
> We definitely need the SkMutex here. If we don't provide our own mutex, skia will fall back to use a static skmutex arrray. And the skmutex array has 30 mutex in it used in a ring fashion. 
> The problem is that 2 DiscardablePixelRef can later on use the same mutex and lead to deadlocks.

I don't think 2 DiscardablePixelRef locked on the same mutex will lead to deadlock, it's more like LazyDecodingPixelRef and DiscardablePixelRef locked the same mutex that can be a problem. I think we should fix this quickly and roll in a new Skia with SK_API for SkMutex.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list