Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: ui/wayland/wayland_buffer.h

Issue 7457023: Adding a Wayland basic toolkit (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More comments and Chrome style formatting Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WAYLAND_BUFFER_H_
6 #define WAYLAND_BUFFER_H_
7
8 #include "base/basictypes.h"
9
10 struct wl_buffer;
11
12 /*
13 Wrapper around a wl_buffer. A wl_buffer is associated with a drawing surface.
14
15 This class is a basic interface of what a buffer should be/provide.
16 Implementations whould create and destroy the wl_buffer.
17 */
18 class WaylandBuffer {
19 public:
20 WaylandBuffer();
21 virtual ~WaylandBuffer();
22
23 wl_buffer* GetBuffer() const;
24 protected:
25 /* Owned by this object and should be destroyed by this object. */
26 wl_buffer* buffer_;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(WaylandBuffer);
30 };
31
32 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698