Closed Bug 902103 Opened 12 years ago Closed 12 years ago

[SkiaGL] Free Layer resource when CanvasContext got demoted

Categories

(Core :: Graphics: Canvas2D, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: pchang, Assigned: pchang)

References

Details

Attachments

(1 file, 1 obsolete file)

With skiaGL Canvas enabled, playing "cut the rope" didn't switch to next level during level switch. Need to switch twice to make screen updated. http://people.mozilla.com/~pchang/ctr/
Assignee: nobody → pchang
Attached patch bug-902103-fix (obsolete) — Splinter Review
For "Cut the rope", it was easy that CanvasContext got demoted during level switching. With skiaGL canvas, the GLContext/GLScreenBuffer will be referred by CanvasLayer. Therefore, we also need to set mResetLayer as true when we clear mTarget.
Attachment #786440 - Flags: review?(snorp)
Blocks: 858237
Comment on attachment 786440 [details] [diff] [review] bug-902103-fix Yup looks good to me, but we need a gfx peer to review. George the rescue!
Attachment #786440 - Flags: review?(snorp)
Attachment #786440 - Flags: review?(gwright)
Attachment #786440 - Flags: review+
Attachment #786440 - Flags: review?(gwright) → review+
add reviewer in patch
Attachment #786440 - Attachment is obsolete: true
Attachment #786918 - Flags: review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: