OLD | NEW |
(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 // Wrapper around a wl_buffer. A wl_buffer is associated with a drawing |
| 13 // 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 class WaylandBuffer { |
| 18 public: |
| 19 WaylandBuffer(); |
| 20 virtual ~WaylandBuffer(); |
| 21 |
| 22 wl_buffer* GetBuffer() const; |
| 23 protected: |
| 24 // Owned by this object and should be destroyed by this object. |
| 25 wl_buffer* buffer_; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(WaylandBuffer); |
| 29 }; |
| 30 |
| 31 #endif |
OLD | NEW |