Closed
Bug 798053
Opened 13 years ago
Closed 13 years ago
mozilla::gfx::Scale always returns false
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: joe, Assigned: joe)
Details
Attachments
(1 file, 1 obsolete file)
|
820 bytes,
patch
|
gw280
:
review+
|
Details | Diff | Splinter Review |
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)
Comment 1•13 years ago
|
||
Would SkBitmap::isNull() be better instead of readyToDraw()?
| Assignee | ||
Comment 2•13 years ago
|
||
Whatever means "Is this a good result that could be drawn if all the relevant Skia dances were done" is what I want.
Comment 3•13 years ago
|
||
OK that seems fine. I don't think locking is an expensive operation anyway.
Updated•13 years ago
|
Attachment #668194 -
Flags: review?(gwright) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #668194 -
Attachment is obsolete: true
Attachment #668252 -
Flags: review?(gwright)
Updated•13 years ago
|
Attachment #668252 -
Flags: review?(gwright) → review+
| Assignee | ||
Comment 5•13 years ago
|
||
Target Milestone: --- → mozilla19
Comment 6•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dbcb02897678
Should this have a test?
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
| Assignee | ||
Comment 7•13 years ago
|
||
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.
Description
•