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 WAYLAND_SHM_BUFFER_H_ |
| 6 #define WAYLAND_SHM_BUFFER_H_ |
| 7 |
| 8 #include "wayland_buffer.h" |
| 9 #include "wayland_display.h" |
| 10 |
| 11 #include <stdint.h> |
| 12 |
| 13 typedef struct _cairo_surface cairo_surface_t; |
| 14 |
| 15 class WaylandShmBuffer : public WaylandBuffer { |
| 16 public: |
| 17 WaylandShmBuffer(WaylandDisplay* display, uint32_t width, uint32_t height); |
| 18 virtual ~WaylandShmBuffer(); |
| 19 |
| 20 cairo_surface_t* GetDataSurface() const; |
| 21 private: |
| 22 cairo_surface_t* cairo_data_surface_; |
| 23 }; |
| 24 |
| 25 #endif |
OLD | NEW |