Index: ui/ozone/platform/dri/dri_vsync_provider.cc |
diff --git a/ui/ozone/platform/dri/dri_vsync_provider.cc b/ui/ozone/platform/dri/dri_vsync_provider.cc |
index bf88c5d94ded27d4f06d67feb51905effa016e0a..2797dc9cec46a2a2f38259023df8cb3e0eb9e315 100644 |
--- a/ui/ozone/platform/dri/dri_vsync_provider.cc |
+++ b/ui/ozone/platform/dri/dri_vsync_provider.cc |
@@ -23,8 +23,11 @@ void DriVSyncProvider::GetVSyncParameters(const UpdateVSyncCallback& callback) { |
// The value is invalid, so we can't update the parameters. |
if (controller->GetTimeOfLastFlip() == 0 || |
- controller->get_mode().vrefresh == 0) |
+ controller->get_mode().vrefresh == 0) { |
+ callback.Run(base::TimeTicks(), |
dnicoara
2015/02/23 22:48:26
Why do you need this?
achaulk
2015/02/23 22:50:17
Dropping the callback causes a deadlock
dnicoara
2015/02/24 16:46:53
We should look into what's causing the deadlock. T
|
+ base::TimeDelta::FromSecondsD(1.0f / 60.0f)); |
return; |
+ } |
// Stores the time of the last refresh. |
base::TimeTicks timebase = |