forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a PaintRecorder to CanvasResourceProvider
This CL is the first step in creating a PaintRecord backed resource provider for canvas OOP-R. Changes of ownership: - PaintRecorder entirely moved from Canvas2DLayerBridge to CanvasResourceProvider. - Management of needs_flush_ for MemoryManagedPaintRecorder moved to CanvasResourceProvider. - RestoreCanvasMatrixClipStack logic centralized to CanvasResourceHost and can be accessed via callback - Backing SkiaPaintCanvas now private to CanvasResourceProvider with no external access. Any users of the backing SkiaPaintCanvas in Canvas2DLayerBridge had their functionality moved to CanvasResourceProvider (ie. new RestoreBackBuffer() function) Updates to test files: - Addition of explicit FlushCanvas() calls in tests that used to expect SkiaPaintCanvas to immediately update. - Some tests expected the CanvasResourceProvider to be created on first draw. This expectation has been changed since the CanvasResourceProvider now gets set up on SetCanvasResourceHost(). Other new functionality: - Display Item List now has a bit that tracks if it contains any draw operations. This is used to see if there are draw ops to flush. Bug: 1019288 Change-Id: I717b18e22d6699dc876d8f8121a25d147738579d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891292 Commit-Queue: Khushal <khushalsagar@chromium.org> Reviewed-by: Aaron Krajeski <aaronhk@chromium.org> Reviewed-by: Juanmi Huertas <juanmihd@chromium.org> Reviewed-by: Fernando Serboncini <fserb@chromium.org> Reviewed-by: Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#743002}
- Loading branch information
Jonah Chin
authored and
Commit Bot
committed
Feb 20, 2020
1 parent
0bdb38a
commit 2a3b118
Showing
18 changed files
with
244 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.