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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 17 16:01:07 PST 2013


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





--- Comment #20 from Hin-Chung Lam <hclam at google.com>  2013-01-17 16:02:54 PST ---
(From update of attachment 183223)
View in context: https://bugs.webkit.org/attachment.cgi?id=183223&action=review

> Source/WebCore/platform/graphics/chromium/DiscardablePixelRef.cpp:45
> +    dst->lockPixels();

I think this lockPixels() is not balanced by any unlockPixels().

I need to think about how to count all lock/unlock for ASSERT.

> Source/WebCore/platform/graphics/chromium/ImageFrameGenerator.cpp:118
> +        scaledBitmap = skia::ImageOperations::Resize(fullSizeImage->bitmap(), resizeMethod(), scaledSize.width(), scaledSize.height(), &allocator);

Please add a comment of what this call entails.

This call allocates DiscardablePixelRef, pin and then unpin. Which means using scaledBitmap can be discarded immediately after this call so warn it here.

-- 
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