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

Side by Side Diff: ui/gl/gl_context_mock_version.h

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 unified diff | Download patch
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 #ifndef UI_GL_GL_CONTEXT_MOCK_VERSION_H_
6 #define UI_GL_GL_CONTEXT_MOCK_VERSION_H_
7
8 #include "ui/gl/gl_context_stub.h"
9
10 namespace gfx {
11
12 // A GLContext that only reports its version for unit tests.
13 class GL_EXPORT GLContextMockVersion : public GLContextStub {
14 public:
15 GLContextMockVersion(const char* version_str);
16
17 protected:
18 virtual std::string GetGLVersion() OVERRIDE;
19
20 virtual ~GLContextMockVersion();
piman 2013/12/04 22:45:12 nit: blank line before 'private:'
oetuaho 2013/12/05 09:47:14 Done.
21 private:
22 const char* version_str_;
23
24 DISALLOW_COPY_AND_ASSIGN(GLContextMockVersion);
25 };
26
27 } // namespace gfx
28
29 #endif // UI_GL_GL_CONTEXT_MOCK_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698