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_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_ | |
6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_ | |
7 #pragma once | |
8 | |
9 #include "base/memory/ref_counted.h" | |
10 #include "ui/gfx/size.h" | |
11 | |
12 struct wl_egl_pixmap; | |
13 | |
14 // The GL context associated with the surface must be current when | |
15 // an instance is created or destroyed. | |
16 class AcceleratedSurface : public base::RefCounted<AcceleratedSurface> { | |
17 public: | |
18 AcceleratedSurface(const gfx::Size& size); | |
19 const gfx::Size& size() const { return size_; } | |
20 struct wl_egl_pixmap* pixmap() const { return pixmap_; } | |
sky
2011/07/27 15:51:05
Do you really need struct here and on line 28?
Do
| |
21 uint32 texture() const { return texture_; } | |
22 | |
23 private: | |
24 ~AcceleratedSurface(); | |
25 | |
26 gfx::Size size_; | |
27 void* image_; | |
28 struct wl_egl_pixmap* pixmap_; | |
29 uint32 texture_; | |
30 | |
31 friend class base::RefCounted<AcceleratedSurface>; | |
sky
2011/07/27 15:51:05
friends are generally first in the private section
| |
32 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); | |
33 }; | |
34 | |
35 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_ | |
OLD | NEW |