Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set sw=4 ts=8 et 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 : namespace mozilla {
11 :
12 : namespace gfx {
13 : class DrawTarget;
14 : } // namespace gfx
15 :
16 : namespace layers {
17 :
18 1 : class CompositorVsyncSchedulerOwner
19 : {
20 : public:
21 : virtual bool IsPendingComposite() = 0;
22 : virtual void FinishPendingComposite() = 0;
23 : virtual void CompositeToTarget(gfx::DrawTarget* aTarget, const gfx::IntRect* aRect = nullptr) = 0;
24 : };
25 :
26 : } // namespace layers
27 : } // namespace mozilla
28 :
29 : #endif // mozilla_layers_CompositorVsyncSchedulerOwner_h
|