author Mozilla Releng Treescript <>
Fri, 12 Apr 2019 15:36:34 +0000
changeset 523153 6b7f2c9b2b4e9d7e78bc02eeb7a0152c96a3a617
parent 506097 be8b9297085042370ded2cd12b210b7ebeb895a8
permissions -rw-r--r--
No bug - Tagging 03e1b51654e2255fb61a37bb02ed94a7d0637178 with FIREFOX_67_0b10_RELEASE a=release CLOSED TREE DONTBUILD

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

include protocol PBackground;
include "mozilla/layers/LayersMessageUtils.h";

using class mozilla::TimeStamp from "mozilla/TimeStamp.h";
using mozilla::VsyncEvent from "mozilla/VsyncDispatcher.h";

namespace mozilla {
namespace layout {

 * The PVsync is a sub-protocol in PBackground and it is used to notify
 * the vsync event from chrome to content process. It also provides the
 * interfaces for content to observe/unobserve vsync event notifications.
async protocol PVsync
  manager PBackground;

  // Send vsync event from chrome to content process.
  prio(high) async Notify(VsyncEvent aVsync) compress;

  // Send the vsync rate to the content process.
  async VsyncRate(float aVsyncRate);

  // Content process use these messages to acquire the vsync event.
  async Observe();
  async Unobserve();
  async RequestVsyncRate();

  // This message is never sent. Each PVsync actor will stay alive as long as
  // its PBackground manager.
  async __delete__();

} // namespace layout
} // namespace mozilla