Closed
Bug 695765
Opened 13 years ago
Closed 13 years ago
Hack around Bug 695763 for drawWindow
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: khuey, Assigned: khuey)
References
Details
Attachments
(2 obsolete files)
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Force sync decoding of everything in the document's image tracker and in subdocuments.
Attachment #568133 -
Flags: review?(bzbarsky)
![]() |
||
Comment 2•13 years ago
|
||
Comment on attachment 568133 [details] [diff] [review]
Patch
The GetOurOwnerDoc change seems out of place here....
The succeeded setup will mean that drawWindow on any document with SVG images will warn. That doesn't seem desirable. Should VectorImage just return NS_OK?
This probably needs review from an imagelib person too.
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #2)
> Comment on attachment 568133 [details] [diff] [review] [diff] [details] [review]
> Patch
>
> The GetOurOwnerDoc change seems out of place here....
Yeah, the hazards of having 20 patches applied :-/
> The succeeded setup will mean that drawWindow on any document with SVG
> images will warn. That doesn't seem desirable. Should VectorImage just
> return NS_OK?
I think this is the desired behavior until somebody hooks up synchronous decoding for VectorImage. I'm just implementing enough here to make reftests pass with the patch from bug 685516 ...
> This probably needs review from an imagelib person too.
Yeah.
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #3)
> (In reply to Boris Zbarsky (:bz) from comment #2)
> > Comment on attachment 568133 [details] [diff] [review] [diff] [details] [review] [diff] [details] [review]
> > The succeeded setup will mean that drawWindow on any document with SVG
> > images will warn. That doesn't seem desirable. Should VectorImage just
> > return NS_OK?
>
> I think this is the desired behavior until somebody hooks up synchronous
> decoding for VectorImage. I'm just implementing enough here to make
> reftests pass with the patch from bug 685516 ...
Actually, we should do something better here. Not sure what ...
Maybe NS_OK is ok for now.
Assignee | ||
Comment 5•13 years ago
|
||
We should probably return NS_OK if VectorImage::mFullyLoaded is true, and NS_ERROR_FAILURE otherwise. Does that seem reasonable?
![]() |
||
Comment 6•13 years ago
|
||
That seems good to me.
Assignee | ||
Comment 7•13 years ago
|
||
Comments addressed
Attachment #568133 -
Attachment is obsolete: true
Attachment #568133 -
Flags: review?(bzbarsky)
Attachment #568161 -
Flags: review?(bzbarsky)
![]() |
||
Comment 8•13 years ago
|
||
Comment on attachment 568161 [details] [diff] [review]
Patch
r=me; again get some imagelib person to look too.
Attachment #568161 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #568161 -
Flags: review?(jmuizelaar)
Comment 9•13 years ago
|
||
Comment on attachment 568161 [details] [diff] [review]
Patch
Not beautiful, but seems ok. I'd appreciate a comment in the idl about why SyncDecode is being exposed.
I've also pinged bholley for review, but I think it's fine to push this before he responds.
Attachment #568161 -
Flags: review?(jmuizelaar)
Attachment #568161 -
Flags: review?(bobbyholley+bmo)
Attachment #568161 -
Flags: review+
Comment 10•13 years ago
|
||
So Image::Draw has a SYNC_DECODE flag, would using that be sufficient for solving this bug?
Comment 11•13 years ago
|
||
Comment on attachment 568161 [details] [diff] [review]
Patch
So, I'm not really excited about this patch.
If the problem is discarding, the retained layer should already contain what we want. If the problem is that the image is mid-decode, the invalidations should trigger us to re-draw the layer, which we should do with the SYNC_DECODE flag to Draw(). Which problem are we trying to solve here?
r- for now until we talk about it some more.
(In reply to Jeff Muizelaar [:jrmuizel] from comment #9)
> I've also pinged bholley for review, but I think it's fine to push this
> before he responds.
Blasphemy!
Attachment #568161 -
Flags: review?(bobbyholley+bmo) → review-
Assignee | ||
Comment 12•13 years ago
|
||
Comment on attachment 568161 [details] [diff] [review]
Patch
This patch doesn't work anyways :-(
Attachment #568161 -
Attachment is obsolete: true
![]() |
||
Comment 13•13 years ago
|
||
> Which problem are we trying to solve here?
1) We're mid-decode.
2) We try to drawWindow onload, which requires that the decode be done by then.
3) Image decodes for lots of images don't block onload.
#2 is why invalidations don't help. #1 is why discarding is not the issue.
Your options are to fix item 3 above or to have a way to force sync decode on drawWindow.
Assignee | ||
Comment 14•13 years ago
|
||
Going to do Bug 697230 instead.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•