forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwayland_buffer.h
36 lines (26 loc) · 874 Bytes
/
wayland_buffer.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
35
36
// Copyright (c) 2011 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_WAYLAND_WAYLAND_BUFFER_H_
#define UI_WAYLAND_WAYLAND_BUFFER_H_
#include "base/basictypes.h"
struct wl_buffer;
namespace ui {
// Wrapper around a wl_buffer. A wl_buffer is associated with a drawing
// surface.
//
// This class is a basic interface of what a buffer should be/provide.
// Implementations whould create and destroy the wl_buffer.
class WaylandBuffer {
public:
WaylandBuffer();
virtual ~WaylandBuffer();
wl_buffer* buffer() const { return buffer_; }
protected:
// Owned by this object and should be destroyed by this object.
wl_buffer* buffer_;
private:
DISALLOW_COPY_AND_ASSIGN(WaylandBuffer);
};
} // namespace ui
#endif // UI_WAYLAND_WAYLAND_BUFFER_H_