Making Clear private and removing a last not-needed clear
Clear was not yet private as it was still being used by Canvas 2D Layer Bridge. Removing that usage now, and marking Clear as Private inside Canvas Resource Provider. Adding an explicit DidDraw to the creation of the Resource, as it has been cleared on construction. I am leaving a GetOrCreateResourceProvider in line 101 as it was called, and that would, potentially, recreate the Resource. It would be also a good follow-up to try to see if there is a way to encapsulate the things DidDraw is doing here and in other places where it is being called after the internal Clear of the CRP, to have it done internally as well. Bug: 1090081 Change-Id: I87a5b6d20a1d79606e1d986c484f2677edde2863 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382612Reviewed-by:Fernando Serboncini <fserb@chromium.org> Commit-Queue: Juanmi Huertas <juanmihd@chromium.org> Cr-Commit-Position: refs/heads/master@{#804237}
Showing
Please register or sign in to comment