Closed Bug 1077306 Opened 11 years ago Closed 8 years ago

Multiple SharedSurface created/deleted for Cost control

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gerard-majax, Unassigned)

Details

(Whiteboard: [NaBfT])

Attachments

(1 file)

Attached file logcat
See the attached logcat. This is reproduced on a Flame with current master. STR: 0. Make sure Usage app is configured to track data 1. Launch app Expected: No that much creation/deletion Actual: Too much surface playing I can't tell whether this is because the chart in the Usage app is inefficient or if it's exposing an underlying gfx issue.
Flags: needinfo?(nical.bugzilla)
I don't have a sim card with me to test this (for a week). Could you record a video of the issue with layer borders and paint flashing activated?
Flags: needinfo?(nical.bugzilla)
Looking at the SurfaceStream code, I need to look more closely at the RenderingMode business here, http://dxr.mozilla.org/mozilla-central/source/dom/canvas/CanvasRenderingContext2D.cpp#1189 but the other place where we create shared surfaces is in http://dxr.mozilla.org/mozilla-central/source/gfx/gl/GLScreenBuffer.cpp#67 which I would expect happens if we are recreating the CanvasLayer.
We'll also reallocate surfaces when the canvas is resized (even when setting the same size again). Another (less likely) possibility is hitting the limit of (64) skiaGL canvases alive at the same time.
Whiteboard: [NaBfT]
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: