Commit a06c1d6c authored by Sasha McIntosh's avatar Sasha McIntosh Committed by Commit Bot

viz: Add null check for |damage_tracker_|

This check fixes the broken perf test: RemoveOverdrawQuadPerfTest.*

Test: viz_perftests
Change-Id: I4afcf5234feb6d810f066f3f5cb9eae7d2559740
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2047419
Commit-Queue: Sasha McIntosh <sashamcintosh@chromium.org>
Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740387}
parent 6117c26f
...@@ -227,7 +227,8 @@ Display::~Display() { ...@@ -227,7 +227,8 @@ Display::~Display() {
if (scheduler_) if (scheduler_)
scheduler_->SetClient(nullptr); scheduler_->SetClient(nullptr);
damage_tracker_->RunDrawCallbacks(); if (damage_tracker_)
damage_tracker_->RunDrawCallbacks();
} }
void Display::Initialize(DisplayClient* client, void Display::Initialize(DisplayClient* client,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment