-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache ImageContext in DisplayResourceProvider
This avoids flat_map look ups in multiple places and saves about 1% of CPU in RendererPerfTest/1.TextureQuads5x5 microbenchmark. ImageContext was split into 2 parts to help with layering: - ExternalUseClient::ImageContext is used by display - ImageContextImpl is used by display_embedder Notes about thread safety were added to external_use_client.h viz::ResourceMetadata is removed because it is no longer necessary. Moving IsTextureResource to DCHECK removes unnecessary map look up on release builds. Bug: 974359 Change-Id: I84f8f57856b63bb2b371ac32349a3ba794b53717 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713298 Commit-Queue: Jonathan Backer <backer@chromium.org> Reviewed-by: kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#684975}
- Loading branch information
Jonathan Backer
authored and
Commit Bot
committed
Aug 7, 2019
1 parent
e6e62b7
commit ea00a40
Showing
24 changed files
with
838 additions
and
769 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
Oops, something went wrong.