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

Side by Side Diff: ui/gfx/gl/gl_surface_glx.cc

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
« no previous file with comments | « ui/gfx/gl/gl_surface_glx.h ('k') | no next file » | 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 extern "C" { 5 extern "C" {
6 #include <X11/Xlib.h> 6 #include <X11/Xlib.h>
7 } 7 }
8 8
9 #include "ui/gfx/gl/gl_surface_glx.h" 9 #include "ui/gfx/gl/gl_surface_glx.h"
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 bool GLSurfaceGLX::IsCreateContextRobustnessSupported() { 98 bool GLSurfaceGLX::IsCreateContextRobustnessSupported() {
99 return g_glx_create_context_robustness_supported; 99 return g_glx_create_context_robustness_supported;
100 } 100 }
101 101
102 NativeViewGLSurfaceGLX::NativeViewGLSurfaceGLX(gfx::PluginWindowHandle window) 102 NativeViewGLSurfaceGLX::NativeViewGLSurfaceGLX(gfx::PluginWindowHandle window)
103 : window_(window), 103 : window_(window),
104 config_(NULL) { 104 config_(NULL) {
105 } 105 }
106 106
107 NativeViewGLSurfaceGLX::NativeViewGLSurfaceGLX()
108 : window_(0),
109 config_(NULL) {
110 }
111
107 NativeViewGLSurfaceGLX::~NativeViewGLSurfaceGLX() { 112 NativeViewGLSurfaceGLX::~NativeViewGLSurfaceGLX() {
108 Destroy(); 113 Destroy();
109 } 114 }
110 115
111 bool NativeViewGLSurfaceGLX::Initialize() { 116 bool NativeViewGLSurfaceGLX::Initialize() {
112 return true; 117 return true;
113 } 118 }
114 119
115 void NativeViewGLSurfaceGLX::Destroy() { 120 void NativeViewGLSurfaceGLX::Destroy() {
116 } 121 }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 280
276 void* PbufferGLSurfaceGLX::GetHandle() { 281 void* PbufferGLSurfaceGLX::GetHandle() {
277 return reinterpret_cast<void*>(pbuffer_); 282 return reinterpret_cast<void*>(pbuffer_);
278 } 283 }
279 284
280 void* PbufferGLSurfaceGLX::GetConfig() { 285 void* PbufferGLSurfaceGLX::GetConfig() {
281 return config_; 286 return config_;
282 } 287 }
283 288
284 } // namespace gfx 289 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface_glx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698