Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: ui/ozone/platform/dri/dri_vsync_provider.cc

Issue 938873002: Add a new API to create a surfaceless GLSurface for Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix swapbuffers & overlay scheduling Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/gl/gl_surface_ozone.cc ('K') | « ui/gl/gl_surface_ozone.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« ui/gl/gl_surface_ozone.cc ('K') | « ui/gl/gl_surface_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698