base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / ui / gl / gl_context_stub_with_extensions.cc
blob1065df789fb226aa3c9594b2a21d90180a4f5e8c
1 // Copyright 2014 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.
5 #include "ui/gl/gl_context_stub_with_extensions.h"
7 namespace gfx {
9 void GLContextStubWithExtensions::AddExtensionsString(const char* extensions) {
10 if (extensions == NULL)
11 return;
13 if (extensions_.size() != 0)
14 extensions_ += ' ';
15 extensions_ += extensions;
18 std::string GLContextStubWithExtensions::GetExtensions() {
19 return extensions_;
22 void GLContextStubWithExtensions::SetGLVersionString(const char* version_str) {
23 version_str_ = std::string(version_str ? version_str : "");
26 std::string GLContextStubWithExtensions::GetGLVersion() {
27 return version_str_;
30 } // namespace gfx