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

Side by Side Diff: app/gfx/gl/gl_context_osmesa.cc

Issue 3146002: Fixed build problems on Mac OS X when using GLContext from Chromium's... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « app/gfx/gl/gl_context_egl.cc ('k') | app/gfx/gl/gl_interface.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include <GL/osmesa.h> 5 #include <GL/osmesa.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gfx/gl/gl_bindings.h" 9 #include "app/gfx/gl/gl_bindings.h"
10 #include "app/gfx/gl/gl_context_osmesa.h" 10 #include "app/gfx/gl/gl_context_osmesa.h"
11 #include "base/logging.h"
11 12
12 namespace gfx { 13 namespace gfx {
13 14
14 OSMesaGLContext::OSMesaGLContext() : context_(NULL) 15 OSMesaGLContext::OSMesaGLContext() : context_(NULL)
15 { 16 {
16 } 17 }
17 18
18 OSMesaGLContext::~OSMesaGLContext() { 19 OSMesaGLContext::~OSMesaGLContext() {
19 } 20 }
20 21
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 buffer_.reset(new_buffer.release()); 112 buffer_.reset(new_buffer.release());
112 size_ = new_size; 113 size_ = new_size;
113 114
114 // If this context is current, need to call MakeCurrent again so OSMesa uses 115 // If this context is current, need to call MakeCurrent again so OSMesa uses
115 // the new buffer. 116 // the new buffer.
116 if (IsCurrent()) 117 if (IsCurrent())
117 MakeCurrent(); 118 MakeCurrent();
118 } 119 }
119 120
120 } // namespace gfx 121 } // namespace gfx
OLDNEW
« no previous file with comments | « app/gfx/gl/gl_context_egl.cc ('k') | app/gfx/gl/gl_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698