tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CompositorVsyncSchedulerOwner.h (1121B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef mozilla_layers_CompositorVsyncSchedulerOwner_h
      8 #define mozilla_layers_CompositorVsyncSchedulerOwner_h
      9 
     10 #include "mozilla/VsyncDispatcher.h"
     11 #include "mozilla/webrender/webrender_ffi.h"
     12 
     13 namespace mozilla {
     14 
     15 namespace gfx {
     16 class DrawTarget;
     17 }  // namespace gfx
     18 
     19 namespace layers {
     20 
     21 class CompositorVsyncSchedulerOwner {
     22 public:
     23  virtual bool IsPendingComposite() = 0;
     24  virtual void FinishPendingComposite() = 0;
     25  virtual void CompositeToTarget(VsyncId aId, wr::RenderReasons aReasons,
     26                                 gfx::DrawTarget* aTarget,
     27                                 const gfx::IntRect* aRect = nullptr) = 0;
     28  virtual TimeDuration GetVsyncInterval() const = 0;
     29 };
     30 
     31 }  // namespace layers
     32 }  // namespace mozilla
     33 
     34 #endif  // mozilla_layers_CompositorVsyncSchedulerOwner_h