Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /* vim: set ts=8 sts=2 et sw=2 tw=99: */
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_gfx_ipc_CompositorWidgetVsyncObserver_h
8 : #define mozilla_gfx_ipc_CompositorWidgetVsyncObserver_h
9 :
10 : #include "mozilla/VsyncDispatcher.h"
11 :
12 : namespace mozilla {
13 : namespace gfx {
14 : class VsyncBridgeChild;
15 : } // namespace gfx
16 :
17 : namespace widget {
18 :
19 0 : class CompositorWidgetVsyncObserver : public VsyncObserver
20 : {
21 : typedef gfx::VsyncBridgeChild VsyncBridgeChild;
22 :
23 : public:
24 : CompositorWidgetVsyncObserver(RefPtr<VsyncBridgeChild> aVsyncBridge,
25 : const uint64_t& aRootLayerTreeId);
26 :
27 : bool NotifyVsync(TimeStamp aVsyncTimestamp) override;
28 :
29 : private:
30 : RefPtr<VsyncBridgeChild> mVsyncBridge;
31 : uint64_t mRootLayerTreeId;
32 : };
33 :
34 : } // namespace widget
35 : } // namespace mozilla
36 :
37 : #endif // mozilla_gfx_ipc_CompositorWidgetVsyncObserver_h
|