Bug 200363 - results.webkit.org: Force update cache when timeline updated
Summary: results.webkit.org: Force update cache when timeline updated
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-01 14:42 PDT by Jonathan Bedard
Modified: 2019-08-01 20:51 PDT (History)
4 users (show)

See Also:


Attachments
Patch (4.11 KB, patch)
2019-08-01 14:48 PDT, Jonathan Bedard
jbedard: commit-queue-
Details | Formatted Diff | Diff
Patch (5.16 KB, patch)
2019-08-01 15:15 PDT, Zhifei Fang
no flags Details | Formatted Diff | Diff
Patch (6.07 KB, patch)
2019-08-01 15:30 PDT, Zhifei Fang
no flags Details | Formatted Diff | Diff
Patch (6.43 KB, patch)
2019-08-01 16:46 PDT, Zhifei Fang
no flags Details | Formatted Diff | Diff
Patch (6.12 KB, patch)
2019-08-01 18:46 PDT, Zhifei Fang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2019-08-01 14:42:30 PDT
We need to force the cache to update when the timeline is updated, and we need an exporter to update the timeline.
Comment 1 Jonathan Bedard 2019-08-01 14:48:55 PDT
Created attachment 375349 [details]
Patch
Comment 2 Zhifei Fang 2019-08-01 14:54:13 PDT
Comment on attachment 375349 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=375349&action=review

> Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:151
> +        if (element.logicWidth != width || force) {

I think if (force) will be enough here
Comment 3 Zhifei Fang 2019-08-01 15:05:12 PDT
I will give a new patch about this change, we shouldn't force to redraw cache every time when the state change, this will impact the performance.
Comment 4 Zhifei Fang 2019-08-01 15:15:17 PDT
Created attachment 375354 [details]
Patch
Comment 5 Jonathan Bedard 2019-08-01 15:24:44 PDT
Comment on attachment 375354 [details]
Patch

Can we add the exporter hook?

Also, I'm going to mark my patch as obsolete, since I redrew on scroll too.
Comment 6 Zhifei Fang 2019-08-01 15:30:25 PDT
Created attachment 375357 [details]
Patch
Comment 7 Zhifei Fang 2019-08-01 15:30:44 PDT
(In reply to Jonathan Bedard from comment #5)
> Comment on attachment 375354 [details]
> Patch
> 
> Can we add the exporter hook?
> 
> Also, I'm going to mark my patch as obsolete, since I redrew on scroll too.

Added.
Comment 8 Zhifei Fang 2019-08-01 16:46:47 PDT
Created attachment 375366 [details]
Patch
Comment 9 Jonathan Bedard 2019-08-01 17:10:31 PDT
Comment on attachment 375366 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=375366&action=review

> Tools/ChangeLog:11
> +        (Timeline.CanvasXAxisComponent): Force redraw when scales are updated.

I think you also need to mention the fact that you added the exporter bit.
Comment 10 Zhifei Fang 2019-08-01 18:46:29 PDT
Created attachment 375376 [details]
Patch
Comment 11 WebKit Commit Bot 2019-08-01 20:50:21 PDT
Comment on attachment 375376 [details]
Patch

Clearing flags on attachment: 375376

Committed r248146: <https://trac.webkit.org/changeset/248146>
Comment 12 WebKit Commit Bot 2019-08-01 20:50:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Radar WebKit Bug Importer 2019-08-01 20:51:16 PDT
<rdar://problem/53846931>