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

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: Inlined functions and styling changes Created 9 years, 4 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 UI_WAYLAND_WAYLAND_BUFFER_H_
6 #define UI_WAYLAND_WAYLAND_BUFFER_H_
7
8 #include "base/basictypes.h"
9
10 struct wl_buffer;
11
12 namespace ui {
13
14 // Wrapper around a wl_buffer. A wl_buffer is associated with a drawing
15 // surface.
16 //
17 // This class is a basic interface of what a buffer should be/provide.
18 // Implementations whould create and destroy the wl_buffer.
19 class WaylandBuffer {
20 public:
21 WaylandBuffer() {}
tfarina 2011/07/25 21:10:09 I think it's fine, but I prefer for ctor and dtor
22 virtual ~WaylandBuffer() {}
23
24 wl_buffer* GetBuffer() const { return buffer_; }
tfarina 2011/07/25 21:10:09 Nope, I said the preferred way is: wl_buffer* buf
25
26 protected:
27 // Owned by this object and should be destroyed by this object.
28 wl_buffer* buffer_;
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(WaylandBuffer);
32 };
33
34 } // namespace ui
35
36 #endif // UI_WAYLAND_WAYLAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698