summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/public/swap_completion_callback.h
blob: 367e30688e3fc8782c1a4c4efdd9ba922ea8e6a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_
#define UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_

#include <memory>

#include "base/callback.h"
#include "ui/gfx/swap_result.h"

namespace gfx {
class GpuFence;
struct PresentationFeedback;
}  // namespace gfx

namespace ui {

using SwapCompletionOnceCallback =
    base::OnceCallback<void(gfx::SwapResult, std::unique_ptr<gfx::GpuFence>)>;

using PresentationOnceCallback =
    base::OnceCallback<void(const gfx::PresentationFeedback&)>;

}  // namespace ui

#endif  // UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_