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

Side by Side Diff: ui/gl/gl_context_osmesa.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « ui/gl/gl_context_osmesa.h ('k') | ui/gl/gl_context_stub.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/gl/gl_context_osmesa.h" 5 #include "ui/gl/gl_context_osmesa.h"
6 6
7 #include <GL/osmesa.h> 7 #include <GL/osmesa.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return false; 116 return false;
117 } 117 }
118 118
119 return true; 119 return true;
120 } 120 }
121 121
122 void* GLContextOSMesa::GetHandle() { 122 void* GLContextOSMesa::GetHandle() {
123 return context_; 123 return context_;
124 } 124 }
125 125
126 void GLContextOSMesa::SetSwapInterval(int interval) { 126 void GLContextOSMesa::OnSetSwapInterval(int interval) {
127 DCHECK(IsCurrent(NULL)); 127 DCHECK(IsCurrent(NULL));
128 } 128 }
129 129
130 GLContextOSMesa::~GLContextOSMesa() { 130 GLContextOSMesa::~GLContextOSMesa() {
131 Destroy(); 131 Destroy();
132 } 132 }
133 133
134 } // namespace gfx 134 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_context_osmesa.h ('k') | ui/gl/gl_context_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698