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/gl/gl_context_stub_with_extensions.cc

Issue 98643013: Take GL version and extensions correctly into account when binding functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Accommodated changes in content tests Created 6 years, 11 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
« no previous file with comments | « ui/gl/gl_context_stub_with_extensions.h ('k') | ui/gl/gl_context_wgl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/gl/gl_context_stub_with_extensions.h"
6
7 namespace gfx {
8
9 void GLContextStubWithExtensions::AddExtensionsString(const char* extensions) {
10 if (extensions == NULL)
11 return;
12
13 if (extensions_.size() != 0)
14 extensions_ += ' ';
15 extensions_ += extensions;
16 }
17
18 std::string GLContextStubWithExtensions::GetExtensions() {
19 return extensions_;
20 }
21
22 void GLContextStubWithExtensions::SetGLVersionString(const char* version_str) {
23 version_str_ = std::string(version_str ? version_str : "");
24 }
25
26 std::string GLContextStubWithExtensions::GetGLVersion() {
27 return version_str_;
28 }
29
30 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_context_stub_with_extensions.h ('k') | ui/gl/gl_context_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698