[Quick Editor] Don't clear before rendering
ClosedPublic

Authored by broulik on Feb 6 2018, 10:42 AM.

Details

Summary

We always put a full size Image and Canvas ontop, no need to clear it before.

Test Plan

Improves performance of the editor, notable moving the selection around, somewhat.

Diff Detail

Repository
R166 Spectacle
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik requested review of this revision.Feb 6 2018, 10:42 AM
broulik created this revision.
rkflx added a subscriber: rkflx.

I should add more subtle complaints here and there if this magically results in fixes. Thanks!

Looked at the code and tried to break it, but all is fine.

As for the performance: I could not really tell a difference, but if it is faster for you, there's no harm in landing. I'll let Spectacle's members have the final say.

ngraham accepted this revision.Feb 13 2018, 3:23 AM
ngraham added a subscriber: ngraham.

Looks fine to me too. Couldn't make it explode in testing.

This revision is now accepted and ready to land.Feb 13 2018, 3:23 AM
This revision was automatically updated to reflect the committed changes.