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

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

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 5 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
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 11
12 // The GL context associated with the surface must be current when 12 // The GL context associated with the surface must be current when
13 // an instance is created or destroyed. 13 // an instance is created or destroyed.
14 // FIXME(backer): Rename AcceleratedSurfaceEGL.
14 class AcceleratedSurface : public base::RefCounted<AcceleratedSurface> { 15 class AcceleratedSurface : public base::RefCounted<AcceleratedSurface> {
15 public: 16 public:
16 AcceleratedSurface(const gfx::Size& size); 17 AcceleratedSurface(const gfx::Size& size);
17 const gfx::Size& size() const { return size_; } 18 const gfx::Size& size() const { return size_; }
18 uint32 pixmap() const { return pixmap_; } 19 uint32 pixmap() const { return pixmap_; }
19 uint32 texture() const { return texture_; } 20 uint32 texture() const { return texture_; }
20 21
21 private: 22 private:
22 ~AcceleratedSurface(); 23 ~AcceleratedSurface();
23 24
24 gfx::Size size_; 25 gfx::Size size_;
25 void* image_; 26 void* image_;
26 uint32 pixmap_; 27 uint32 pixmap_;
27 uint32 texture_; 28 uint32 texture_;
28 29
29 friend class base::RefCounted<AcceleratedSurface>; 30 friend class base::RefCounted<AcceleratedSurface>;
30 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); 31 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface);
31 }; 32 };
32 33
33 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_ 34 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698