mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add timestamp to the page rendered event.
This is needed to track rendering time in Firefox's talos performance framework. See https://bugzilla.mozilla.org/show_bug.cgi?id=1565680
This commit is contained in:
parent
28326165ff
commit
60b8b7a8d2
1 changed files with 3 additions and 0 deletions
|
@ -222,6 +222,7 @@ class PDFPageView {
|
|||
source: this,
|
||||
pageNumber: this.id,
|
||||
cssTransform: true,
|
||||
timestamp: performance.now(),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
@ -245,6 +246,7 @@ class PDFPageView {
|
|||
source: this,
|
||||
pageNumber: this.id,
|
||||
cssTransform: true,
|
||||
timestamp: performance.now(),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
@ -456,6 +458,7 @@ class PDFPageView {
|
|||
source: this,
|
||||
pageNumber: this.id,
|
||||
cssTransform: false,
|
||||
timestamp: performance.now(),
|
||||
});
|
||||
|
||||
if (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue