1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 include protocol PBackground;
7 include protocol PBrowser;
8 include "mozilla/layers/LayersMessageUtils.h";
10 using class mozilla::TimeStamp from "mozilla/TimeStamp.h";
11 using mozilla::VsyncEvent from "mozilla/VsyncDispatcher.h";
17 * The PVsync is a sub-protocol in PBackground or PBrowser and it is used to
18 * notify the vsync event from chrome to content process. It also provides the
19 * interfaces for content to observe/unobserve vsync event notifications.
23 manager PBackground or PBrowser;
26 // Send vsync event and vsync rate from chrome to content process.
27 [Compress, Priority=vsync] async Notify(VsyncEvent aVsync, float aVsyncRate);
30 // Content process use these messages to acquire the vsync event.
34 // This message is never sent. Each PVsync actor will stay alive as long as
35 // its PBackground or PBrowser manager.
40 } // namespace mozilla