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

Unified Diff: gpu/command_buffer/service/gl_interface.cc

Issue 511001: Adds a GLMock object so we can check the code is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « gpu/command_buffer/service/gl_interface.h ('k') | gpu/command_buffer/service/gl_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gl_interface.cc
===================================================================
--- gpu/command_buffer/service/gl_interface.cc (revision 0)
+++ gpu/command_buffer/service/gl_interface.cc (revision 0)
@@ -0,0 +1,20 @@
+// Copyright (c) 2009 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 "gpu/command_buffer/service/gl_interface.h"
+
+namespace gles2 {
+
+GLInterface* GLInterface::interface_;
+
+void GLInterface::SetGLInterface(GLInterface* gl_interface) {
+ interface_ = gl_interface;
+}
+
+GLInterface* GLInterface::GetGLInterface() {
+ return interface_;
+}
+
+} // namespace gles2
+
Property changes on: gpu\command_buffer\service\gl_interface.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « gpu/command_buffer/service/gl_interface.h ('k') | gpu/command_buffer/service/gl_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698