Closed
Bug 1163908
Opened 9 years ago
Closed 9 years ago
[LayerScope] Add Heat map in viewer
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
People
(Reporter: u459114, Assigned: u459114)
References
Details
(Whiteboard: gfx-noted)
Attachments
(5 files, 8 obsolete files)
Provide heat map image at viewer side. So that we know 1. how texture been composed 2. the level of overdraw
Attachment #8607565 -
Attachment is obsolete: true
Comment on attachment 8607566 [details] [diff] [review] Export heat map jerry/boris, Have time to look through this change?
Attachment #8607566 -
Flags: feedback?(hshih)
Attachment #8607566 -
Flags: feedback?(boris.chiou)
Comment on attachment 8607570 [details] [review] LayerScope viewer >https://github.com/mozilla/layerscope/pull/21
Comment on attachment 8607570 [details] [review] LayerScope viewer https://github.com/mozilla/layerscope/pull/21
Attachment #8607570 -
Attachment is obsolete: true
Attachment #8607633 -
Flags: feedback?(hshih)
Attachment #8607633 -
Flags: feedback?(boris.chiou)
By using heat-map view in layerscope, we are able to know how compositor draw squares, and tell the severity of overdraw in the current scene.
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8607566 -
Attachment is obsolete: true
Attachment #8607566 -
Flags: feedback?(hshih)
Attachment #8607566 -
Flags: feedback?(boris.chiou)
Attachment #8608174 -
Flags: feedback?(hshih)
Attachment #8608174 -
Flags: feedback?(boris.chiou)
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8607634 -
Attachment is obsolete: true
Comment 12•9 years ago
|
||
Comment on attachment 8608174 [details] [diff] [review] export draw commands Review of attachment 8608174 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/LayerScope.cpp @@ +450,5 @@ > + DrawPacket* dp = packet.mutable_draw(); > + dp->set_layerref(mLayerRef); > + dp->set_offsetx(mOffsetX); > + dp->set_offsety(mOffsetY); > + dp->set_mvmatrix((void *)&mMVMatrix, sizeof(Float) * 16); sizeof(Matrix4x4)? @@ +452,5 @@ > + dp->set_offsetx(mOffsetX); > + dp->set_offsety(mOffsetY); > + dp->set_mvmatrix((void *)&mMVMatrix, sizeof(Float) * 16); > + dp->set_totalrects(mRects); > + for (size_t i = 0; i < mRects; i++) { If we only have 4 maximum of rects, add an assert here.
Attachment #8608174 -
Flags: feedback?(hshih) → feedback+
Assignee | ||
Comment 13•9 years ago
|
||
Assignee | ||
Comment 14•9 years ago
|
||
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8608604 [details] [diff] [review] LayerScope heat map Review of attachment 8608604 [details] [diff] [review]: ----------------------------------------------------------------- Hi Dan, This patch is to export data layerscope::viewer need of display heat-map view. 1. Export uniform/ attribute of each draw call to layerscope. 2. Layerscope then package and forward draw information to the viewer.
Attachment #8608604 -
Flags: review?(dglastonbury)
Attachment #8608174 -
Attachment is obsolete: true
Attachment #8608174 -
Flags: feedback?(boris.chiou)
Assignee | ||
Comment 16•9 years ago
|
||
Hi Jerry/Boris, Here is heap-map implementation on the viewer side. 1. Fetch draw data from the device and convert it to frame.draws object in dataprocessor worker. 2. Replay draw commands on the viewer side by webgl.
Attachment #8607633 -
Attachment is obsolete: true
Attachment #8607633 -
Flags: feedback?(hshih)
Attachment #8607633 -
Flags: feedback?(boris.chiou)
Attachment #8608628 -
Flags: review?(hshih)
Attachment #8608628 -
Flags: review?(boris.chiou)
Assignee | ||
Comment 17•9 years ago
|
||
Comment on attachment 8608628 [details] [review] LayerScope heat-map view on the viewer >https://github.com/mozilla/layerscope/pull/23
Assignee | ||
Comment 18•9 years ago
|
||
Attachment #8608604 -
Flags: review?(dglastonbury) → review+
Assignee | ||
Comment 19•9 years ago
|
||
Try result https://treeherder.mozilla.org/#/jobs?repo=try&revision=771245b9aab5
Comment 20•9 years ago
|
||
Comment on attachment 8608628 [details] [review] LayerScope heat-map view on the viewer Since we use the viewer at desktop, some performance issue might not noticeable. I don't check the TwoDViewImp() very clearly. I don't really understand css selector and your dom structure. Please check the comment at github.
Attachment #8608628 -
Flags: review?(hshih) → review+
Assignee | ||
Comment 21•9 years ago
|
||
(In reply to Jerry Shih[:jerry] (UTC+8) from comment #20) > Comment on attachment 8608628 [details] [review] > LayerScope heat-map view on the viewer > > Since we use the viewer at desktop, some performance issue might not > noticeable. > I don't check the TwoDViewImp() very clearly. I don't really understand css > selector and your dom structure. > Please check the comment at github. OK, thank.
Assignee | ||
Comment 22•9 years ago
|
||
Testing result. https://treeherder.mozilla.org/#/jobs?repo=try&revision=f05ff5576370
Attachment #8608604 -
Attachment is obsolete: true
Attachment #8609556 -
Flags: review+
Keywords: checkin-needed,
leave-open
Assignee | ||
Comment 23•9 years ago
|
||
Attachment #8608628 -
Attachment is obsolete: true
Attachment #8608628 -
Flags: review?(boris.chiou)
Attachment #8609937 -
Flags: review?(boris.chiou)
Updated•9 years ago
|
Attachment #8609937 -
Flags: review?(boris.chiou) → review+
Comment 24•9 years ago
|
||
We will merge viewer side after gecko side is checked in.
Comment 25•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f4dcd8361800
Keywords: checkin-needed
Assignee | ||
Comment 27•9 years ago
|
||
(In reply to Boris Chiou [:boris] from comment #24) > We will merge viewer side after gecko side is checked in. Pull request https://github.com/mozilla/layerscope/pull/24/files
Comment 28•9 years ago
|
||
(In reply to C.J. Ku[:cjku] from comment #27) > (In reply to Boris Chiou [:boris] from comment #24) > > We will merge viewer side after gecko side is checked in. > Pull request > https://github.com/mozilla/layerscope/pull/24/files Merged. You can resolve this bug after checking-in into mozilla-central.
Updated•9 years ago
|
Whiteboard: gfx-noted
You need to log in
before you can comment on or make changes to this bug.
Description
•