Closed Bug 1460515 Opened 6 years ago Closed 6 years ago

Reuse more image keys at WebRenderImageData::UpdateImageKey()

Categories

(Core :: Graphics: WebRender, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

Details

Attachments

(1 file, 5 obsolete files)

We could reuse more external image keys at WebRenderImageData::UpdateImageKey().
Assignee: nobody → sotaro.ikeda.g
Summary: Reuse more external image keys at WebRenderImageData::UpdateImageKey() → Reuse more image keys at WebRenderImageData::UpdateImageKey()
Hmm, there is a case that attachment 8974632 [details] [diff] [review] did not work well. "update image key" was requested to non-exisitng image key.
Depends on: 1472951
Rebased.
Attachment #8990889 - Attachment is obsolete: true
Update nits.
Attachment #8990902 - Attachment is obsolete: true
Attachment #8991192 - Flags: review?(nical.bugzilla)
Comment on attachment 8991192 [details] [diff] [review]
patch - Reuse more image keys at WebRenderImageData::UpdateImageKey()

Review of attachment 8991192 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/layers/wr/WebRenderUserData.cpp
@@ -155,5 @@
>      return mKey;
>    }
>  
> -  // Delete old key, we are generating a new key.
> -  // TODO(nical): noooo... we need to reuse image keys.

Thanks! :)
Attachment #8991192 - Flags: review?(nical.bugzilla) → review+
Pushed by sikeda@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9126823d0e9c
Reuse more image keys at WebRenderImageData::UpdateImageKey() r=nical
https://hg.mozilla.org/mozilla-central/rev/9126823d0e9c
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: