Closed Bug 798053 Opened 13 years ago Closed 13 years ago

mozilla::gfx::Scale always returns false

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: joe, Assigned: joe)

Details

Attachments

(1 file, 1 obsolete file)

Due (I think) to semantics of SkBitmap, Scale is always returning false, indicating failure. SkBitmap::readyToDraw() is returning false on an SkBitmap with only a pixelRef (ie no direct pixels). These are naturally created by returning SkBitmaps that I back with a setPixels() call. This patch fixes this specific bug, but I don't know if it's correct, or if readyToDraw() should be changed.
Attachment #668194 - Flags: review?(gwright)
Would SkBitmap::isNull() be better instead of readyToDraw()?
Whatever means "Is this a good result that could be drawn if all the relevant Skia dances were done" is what I want.
OK that seems fine. I don't think locking is an expensive operation anyway.
Attachment #668194 - Flags: review?(gwright) → review+
Attached patch use isNullSplinter Review
Attachment #668194 - Attachment is obsolete: true
Attachment #668252 - Flags: review?(gwright)
Attachment #668252 - Flags: review?(gwright) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Testing this depends on testing downscaling in general, which is bug 795371.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: