-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframebuffer_impl.h
34 lines (23 loc) · 962 Bytes
/
framebuffer_impl.h
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
29
30
31
32
33
34
// Copyright 2016 The Fuchsia 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 APPS_FRAMEBUFFER_FRAMEBUFFER_IMPL_H_
#define APPS_FRAMEBUFFER_FRAMEBUFFER_IMPL_H_
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/services/framebuffer/interfaces/framebuffer.mojom.h"
namespace framebuffer {
class FramebufferImpl : public mojo::Framebuffer {
public:
static void Create(const mojo::FramebufferProvider::CreateCallback& callback);
protected:
~FramebufferImpl() override;
private:
FramebufferImpl(mojo::InterfaceRequest<mojo::Framebuffer> request, int fd);
// |mojo::Framebuffer| implementation:
void Flush(const FlushCallback& callback) override;
mojo::StrongBinding<Framebuffer> binding_;
int fd_;
MOJO_DISALLOW_COPY_AND_ASSIGN(FramebufferImpl);
};
} // namespace framebuffer
#endif // APPS_FRAMEBUFFER_FRAMEBUFFER_IMPL_H_