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

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

Issue 10009024: Remove WAYLAND port (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 8 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
« no previous file with comments | « ui/wayland/wayland_screen.cc ('k') | ui/wayland/wayland_shm_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SHM_BUFFER_H_
6 #define UI_WAYLAND_WAYLAND_SHM_BUFFER_H_
7
8 #include <stdint.h>
9
10 #include "base/basictypes.h"
11 #include "ui/wayland/wayland_buffer.h"
12
13 typedef struct _cairo_surface cairo_surface_t;
14
15 namespace ui {
16
17 class WaylandDisplay;
18
19 // A SHM implementation for the WaylandBuffer.
20 class WaylandShmBuffer : public WaylandBuffer {
21 public:
22 // Creates a Wayland buffer with the given width and height.
23 WaylandShmBuffer(WaylandDisplay* display, uint32_t width, uint32_t height);
24 virtual ~WaylandShmBuffer();
25
26 // Returns a pointer to the surface associated with the buffer.
27 // This object maintains ownership of the surface.
28 cairo_surface_t* data_surface() const { return data_surface_; }
29
30 private:
31 // The surface associated with the Wayland buffer.
32 cairo_surface_t* data_surface_;
33
34 DISALLOW_COPY_AND_ASSIGN(WaylandShmBuffer);
35 };
36
37 } // namespace ui
38
39 #endif // UI_WAYLAND_WAYLAND_SHM_BUFFER_H_
OLDNEW
« no previous file with comments | « ui/wayland/wayland_screen.cc ('k') | ui/wayland/wayland_shm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698