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

Unified Diff: chrome/renderer/media/cast_receiver_session_delegate.cc

Issue 1126873002: Cast: Enable high-resolution timers while casting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oopsie fix Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_receiver_session_delegate.cc
diff --git a/chrome/renderer/media/cast_receiver_session_delegate.cc b/chrome/renderer/media/cast_receiver_session_delegate.cc
index 35099894f75366a90217c4abf882ca045ffaefee..1402b7d6dcf93e7a1eb08e94afc372403a9e4fac 100644
--- a/chrome/renderer/media/cast_receiver_session_delegate.cc
+++ b/chrome/renderer/media/cast_receiver_session_delegate.cc
@@ -5,12 +5,20 @@
#include "chrome/renderer/media/cast_receiver_session_delegate.h"
#include "base/synchronization/waitable_event.h"
+#include "base/time/time.h"
#include "base/values.h"
CastReceiverSessionDelegate::CastReceiverSessionDelegate()
: weak_factory_(this) {
+#if defined(OS_WIN)
+ base::Time::ActivateHighResolutionTimer(true);
miu 2015/05/07 02:58:00 Consider adding a LOG(WARNING) message if this fun
miu 2015/05/07 02:58:00 Also, should all these code changes go in CastSess
hubbe 2015/05/07 19:16:50 No thinking, I just put it in the wrong place. :)
hubbe 2015/05/07 19:16:50 Done.
+#endif
+}
+CastReceiverSessionDelegate::~CastReceiverSessionDelegate() {
+#if defined(OS_WIN)
+ base::Time::ActivateHighResolutionTimer(false);
+#endif
}
-CastReceiverSessionDelegate::~CastReceiverSessionDelegate() {}
void CastReceiverSessionDelegate::LogRawEvents(
const std::vector<media::cast::PacketEvent>& packet_events,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698