aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-ui__gl__sync_control_vsync_provider.cc
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2015-05-25 09:35:20 +0000
committerRene Ladan <rene@FreeBSD.org>2015-05-25 09:35:20 +0000
commitf93a363e54b78a9523f6937e6b816a861621e3a2 (patch)
treefbdc44ba875a2bf33de2d7fd8407575e6da74e01 /www/chromium/files/patch-ui__gl__sync_control_vsync_provider.cc
parent9d20c046fd4e8d4e89d23673e6b391af09a992bc (diff)
downloadports-f93a363e54b78a9523f6937e6b816a861621e3a2.tar.gz
ports-f93a363e54b78a9523f6937e6b816a861621e3a2.zip
Notes
Diffstat (limited to 'www/chromium/files/patch-ui__gl__sync_control_vsync_provider.cc')
-rw-r--r--www/chromium/files/patch-ui__gl__sync_control_vsync_provider.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/chromium/files/patch-ui__gl__sync_control_vsync_provider.cc b/www/chromium/files/patch-ui__gl__sync_control_vsync_provider.cc
new file mode 100644
index 000000000000..5ce21b677e9f
--- /dev/null
+++ b/www/chromium/files/patch-ui__gl__sync_control_vsync_provider.cc
@@ -0,0 +1,29 @@
+--- ui/gl/sync_control_vsync_provider.cc.orig 2015-04-14 18:19:00.000000000 -0400
++++ ui/gl/sync_control_vsync_provider.cc 2015-04-28 08:42:41.263448000 -0400
+@@ -9,7 +9,7 @@
+ #include "base/logging.h"
+ #include "base/time/time.h"
+
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ // These constants define a reasonable range for a calculated refresh interval.
+ // Calculating refreshes out of this range will be considered a fatal error.
+ const int64 kMinVsyncIntervalUs = base::Time::kMicrosecondsPerSecond / 400;
+@@ -35,7 +35,7 @@
+
+ void SyncControlVSyncProvider::GetVSyncParameters(
+ const UpdateVSyncCallback& callback) {
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ base::TimeTicks timebase;
+
+ // The actual clock used for the system time returned by glXGetSyncValuesOML
+@@ -151,7 +151,7 @@
+ last_timebase_ = timebase;
+ last_media_stream_counter_ = media_stream_counter;
+ callback.Run(timebase, last_good_interval_);
+-#endif // defined(OS_LINUX)
++#endif // defined(OS_LINUX) || defined(OS_BSD)
+ }
+
+ } // namespace gfx