Closed
Bug 990338
Opened 11 years ago
Closed 11 years ago
Use Moz2D for updating CanvasClient
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
Details
(Keywords: perf, regression, Whiteboard: [talos_regression])
Attachments
(5 files)
(deleted),
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 1•11 years ago
|
||
This will bring back the performance regression from last time we tried this, the following patches clean everything up and fix it.
Attachment #8399753 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 2•11 years ago
|
||
This removes a bunch of dead code and simplifies more.
And important change is UpdateTarget previously was calling PaintWithOpacity which applied the mask layer (incorrectly), the Y-flip, and maybe some opacity and an operator (but we never passed values that used this functionality).
This patches no longer does this, since these are all things that should happen in the layers system, and not things we need to do to the texture client's data.
Attachment #8399755 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 3•11 years ago
|
||
This is dead code now.
Attachment #8399757 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 4•11 years ago
|
||
This fixes a regression with BasicCompositor with the earlier patch. Since we longer do the Y-flip when copying to the TextureClient we need to instead set it as a texture flag.
Attachment #8399758 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 5•11 years ago
|
||
FillRect/DrawSurface with OPERATOR_SOURCE is slow because it usually creates a temporary surface to emulate unboundedness. Using CopySurface instead fixes the performance issue.
We can also fix our Moz2D backends to be smarter here, I'll probably do that as well in another bug.
Attachment #8399761 -
Flags: review?(nical.bugzilla)
Updated•11 years ago
|
Attachment #8399753 -
Flags: review?(nical.bugzilla) → review+
Comment 6•11 years ago
|
||
Comment on attachment 8399755 [details] [diff] [review]
Clean up CopyableCanvasLayer
Review of attachment 8399755 [details] [diff] [review]:
-----------------------------------------------------------------
sweet
Attachment #8399755 -
Flags: review?(nical.bugzilla) → review+
Updated•11 years ago
|
Attachment #8399757 -
Flags: review?(nical.bugzilla) → review+
Updated•11 years ago
|
Attachment #8399758 -
Flags: review?(nical.bugzilla) → review+
Updated•11 years ago
|
Attachment #8399761 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e915878751ba
https://hg.mozilla.org/integration/mozilla-inbound/rev/f19aba4974b8
https://hg.mozilla.org/integration/mozilla-inbound/rev/80b89d34acbb
https://hg.mozilla.org/integration/mozilla-inbound/rev/cd723ed732e3
https://hg.mozilla.org/integration/mozilla-inbound/rev/d1f8ac35bdd4
Comment 8•11 years ago
|
||
This may have caused a small MozAfterPaint talos regression on Ubuntu, per thread here:
https://groups.google.com/d/msg/mozilla.dev.tree-management/7UA_3MOPU9I/ED1Q2bzCn98J
Comment 9•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e915878751ba
https://hg.mozilla.org/mozilla-central/rev/f19aba4974b8
https://hg.mozilla.org/mozilla-central/rev/80b89d34acbb
https://hg.mozilla.org/mozilla-central/rev/cd723ed732e3
https://hg.mozilla.org/mozilla-central/rev/d1f8ac35bdd4
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Comment 10•11 years ago
|
||
The following changesets are now in Firefox Nightly:
> e915878751ba Bug 990338 - Use Moz2D for updating CanvasClient. r=nical
> f19aba4974b8 Bug 990338 - Clean up CopyableCanvasLayer. r=nical
> 80b89d34acbb Bug 990338 - Remove FillWithMask since it's dead code. r=nical
> cd723ed732e3 Bug 990338 - Pass CanvasLayer Y-flip flag through layers. r=nical
> d1f8ac35bdd4 Bug 990338 - Use CopySurface when copying data to a TextureClient for better performance. r=nical
Nightly Build Information:
ID: 20140402030201
Changeset: 4941a2ac0786109b08856738019b016a6c5a66a6
Version: 31.0a1
TBPL: https://tbpl.mozilla.org/?rev=4941a2ac0786
URL: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-02-03-02-01-mozilla-central
Download Links:
> Linux x86: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-02-03-02-01-mozilla-central/firefox-31.0a1.en-US.linux-i686.tar.bz2
> Linux x86_64: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-02-03-02-01-mozilla-central/firefox-31.0a1.en-US.linux-x86_64.tar.bz2
> Linux x86_64 ASAN: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-02-03-02-01-mozilla-central/firefox-31.0a1.en-US.linux-x86_64-asan.tar.bz2
> Mac: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-02-03-02-01-mozilla-central/firefox-31.0a1.en-US.mac.dmg
> Win32: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-02-03-02-01-mozilla-central/firefox-31.0a1.en-US.win32.installer.exe
> Win64: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-02-03-02-01-mozilla-central/firefox-31.0a1.en-US.win64-x86_64.installer.exe
Previous Nightly Build Information:
ID: 20140401030203
Changeset: 1417d180a1d8665b1a91b897d1cc4cc31e7980d4
Version: 31.0a1
TBPL: https://tbpl.mozilla.org/?rev=1417d180a1d8
URL: https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/04/2014-04-01-03-02-03-mozilla-central
Comment 11•11 years ago
|
||
as per comment 5, it seems that we are expecting a perf hit here. On OSX 10.6, we have a canvasmark hit:
http://graphs.mozilla.org/graph.html#tests=[[297,63,21]]&sel=1395673504140,1396883104140&displayrange=7&datatype=running
retriggers showing the failure:
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&fromchange=f5c5742ad004&tochange=e06713a76a41&jobname=mozilla-inbound%20talos%20chromez
Comment 12•11 years ago
|
||
Hi Matt,
Are we expecting a 5% hit on osx 10.6 for this? Is that well understood? I am fine closing this as resolved as long we folks are aware of it.
Status: RESOLVED → REOPENED
Flags: needinfo?(matt.woodrow)
Resolution: FIXED → ---
Assignee | ||
Comment 13•11 years ago
|
||
It wasn't expected, but we've filed bug 990854 to fix it.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Depends on: 990854
Flags: needinfo?(matt.woodrow)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•