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

Unified Diff: ui/gl/gl_context_mock_version.cc

Issue 94963003: Take GL version and extensions correctly into account when binding functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed review feedback and Mac build failure Created 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_context_mock_version.cc
diff --git a/ui/gl/gl_context_mock_version.cc b/ui/gl/gl_context_mock_version.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ba16e46febdde58ce383c4bdebb49a53a421084c
--- /dev/null
+++ b/ui/gl/gl_context_mock_version.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gl/gl_context_mock_version.h"
+#include "ui/gl/gl_version_info.h"
+
+namespace gfx {
+
+GLContextMockVersion::GLContextMockVersion(const char* version_str)
+ : GLContextStub()
+ , version_str_(version_str)
piman 2013/12/04 22:45:12 nit: ',' on previous line.
oetuaho 2013/12/05 09:47:14 Done.
+{}
+
+std::string GLContextMockVersion::GetGLVersion() {
+ return std::string(version_str_);
+}
+
+GLContextMockVersion::~GLContextMockVersion() {}
+
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698