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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: WebFrames! Created 4 years, 2 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
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 327ccfd7a8de28705e711b5d2d29e61d826b903c..0b23f6880b6143655e4968869dad26800b925d8b 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -180,6 +180,7 @@
#include "public/platform/WebDoubleSize.h"
#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebFloatRect.h"
+#include "public/platform/WebFrameScheduler.h"
#include "public/platform/WebLayer.h"
#include "public/platform/WebPoint.h"
#include "public/platform/WebRect.h"
@@ -2334,4 +2335,8 @@ void WebLocalFrameImpl::usageCountChromeLoadTimes(const WebString& metric) {
UseCounter::count(frame(), feature);
}
+void WebLocalFrameImpl::audioStateChanged(bool isAudioPlaying) {
+ frame()->frameScheduler()->audioStateChanged(isAudioPlaying);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698