summaryrefslogtreecommitdiffstats
path: root/gfx/ipc/GPUParent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/ipc/GPUParent.cpp')
-rw-r--r--gfx/ipc/GPUParent.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gfx/ipc/GPUParent.cpp b/gfx/ipc/GPUParent.cpp
index 283fb87ee9..f4240a5d97 100644
--- a/gfx/ipc/GPUParent.cpp
+++ b/gfx/ipc/GPUParent.cpp
@@ -571,6 +571,19 @@ mozilla::ipc::IPCResult GPUParent::RecvPreferenceUpdate(const Pref& aPref) {
return IPC_OK();
}
+mozilla::ipc::IPCResult GPUParent::RecvScreenInformationChanged() {
+#if defined(XP_WIN)
+ DeviceManagerDx::Get()->PostUpdateMonitorInfo();
+#endif
+ return IPC_OK();
+}
+
+mozilla::ipc::IPCResult GPUParent::RecvNotifyBatteryInfo(
+ const BatteryInformation& aBatteryInfo) {
+ wr::RenderThread::Get()->SetBatteryInfo(aBatteryInfo);
+ return IPC_OK();
+}
+
static void CopyFeatureChange(Feature aFeature, Maybe<FeatureFailure>* aOut) {
FeatureState& feature = gfxConfig::GetFeature(aFeature);
if (feature.DisabledByDefault() || feature.IsEnabled()) {