Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize readiness check in ToolbarControlContainer
We can: * Check visibility before calling isReadyForTextureCapture * Clear isDirty when snapshot is the same Local tracing says this is about half as expensive but the measurement is a bit noisy. Bug: 1063346 (cherry picked from commit cf6d18b) Change-Id: I21e5ff330b308e600e021ef13ff12bf8096e1c56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4175875 Commit-Queue: Patrick Noland <pnoland@chromium.org> Reviewed-by: Sky Malice <skym@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1094508} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4219870 Commit-Queue: Sky Malice <skym@chromium.org> Reviewed-by: Krishna Govind <govind@chromium.org> Owners-Override: Krishna Govind <govind@chromium.org> Cr-Commit-Position: refs/branch-heads/5481@{#910} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information