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

Unified Diff: ui/accelerated_widget_mac/display_link_mac.h

Issue 1280033004: Revert of Mac Overlays: Add GPU back-pressure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | ui/accelerated_widget_mac/display_link_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/display_link_mac.h
diff --git a/ui/accelerated_widget_mac/display_link_mac.h b/ui/accelerated_widget_mac/display_link_mac.h
index e462e28bc15eefe39e2ba8efb07ec5b28a6c6cef..1ec7a7200cf3528ce11a428e32ac11c4efeda6fa 100644
--- a/ui/accelerated_widget_mac/display_link_mac.h
+++ b/ui/accelerated_widget_mac/display_link_mac.h
@@ -5,8 +5,8 @@
#ifndef UI_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_
#define UI_ACCELERATED_WIDGET_MAC_DISPLAY_LINK_MAC_H_
+#include <QuartzCore/CVDisplayLink.h>
#include <map>
-#include <QuartzCore/CVDisplayLink.h>
#include "base/lazy_instance.h"
#include "base/mac/scoped_typeref.h"
@@ -24,18 +24,10 @@
static scoped_refptr<DisplayLinkMac> GetForDisplay(
CGDirectDisplayID display_id);
- CGDirectDisplayID display_id() const { return display_id_; }
-
// Get vsync scheduling parameters.
bool GetVSyncParameters(
base::TimeTicks* timebase,
base::TimeDelta* interval);
-
- // Return the time of |interval_fraction| of the way through the next
- // vsync period that starts after |from|. If the vsync parameters have
- // not yet been computed, return |from|.
- base::TimeTicks GetNextVSyncTimeAfter(
- const base::TimeTicks& from, double interval_fraction);
private:
friend class base::RefCounted<DisplayLinkMac>;
@@ -78,7 +70,6 @@
// VSync parameters computed during Tick.
bool timebase_and_interval_valid_;
base::TimeTicks timebase_;
- base::TimeTicks timebase_remainder_;
base::TimeDelta interval_;
// Each display link instance consumes a non-negligible number of cycles, so
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | ui/accelerated_widget_mac/display_link_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698