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

Side by Side Diff: ui/gfx/surface/accelerated_surface_wayland.h

Issue 7645004: Add gl.dll, compositor.dll, and surface.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « ui/gfx/surface/accelerated_surface_mac.h ('k') | ui/gfx/surface/io_surface_support_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_ 5 #ifndef UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_
6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_ 6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
11 #include "ui/gfx/surface/surface_export.h"
11 12
12 struct wl_egl_pixmap; 13 struct wl_egl_pixmap;
13 14
14 // The GL context associated with the surface must be current when 15 // The GL context associated with the surface must be current when
15 // an instance is created or destroyed. 16 // an instance is created or destroyed.
16 class AcceleratedSurface : public base::RefCounted<AcceleratedSurface> { 17 class SURFACE_EXPORT AcceleratedSurface
18 : public base::RefCounted<AcceleratedSurface> {
17 public: 19 public:
18 AcceleratedSurface(const gfx::Size& size); 20 AcceleratedSurface(const gfx::Size& size);
19 const gfx::Size& size() const { return size_; } 21 const gfx::Size& size() const { return size_; }
20 // The pointer returned is owned by this object 22 // The pointer returned is owned by this object
21 wl_egl_pixmap* pixmap() const { return pixmap_; } 23 wl_egl_pixmap* pixmap() const { return pixmap_; }
22 uint32 texture() const { return texture_; } 24 uint32 texture() const { return texture_; }
23 25
24 private: 26 private:
25 friend class base::RefCounted<AcceleratedSurface>; 27 friend class base::RefCounted<AcceleratedSurface>;
26 28
27 ~AcceleratedSurface(); 29 ~AcceleratedSurface();
28 30
29 gfx::Size size_; 31 gfx::Size size_;
30 void* image_; 32 void* image_;
31 wl_egl_pixmap* pixmap_; 33 wl_egl_pixmap* pixmap_;
32 uint32 texture_; 34 uint32 texture_;
33 35
34 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); 36 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface);
35 }; 37 };
36 38
37 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_ 39 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_
OLDNEW
« no previous file with comments | « ui/gfx/surface/accelerated_surface_mac.h ('k') | ui/gfx/surface/io_surface_support_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698