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

Unified Diff: ui/gl/gl_stub_api_base.h

Issue 2136223002: Introduce GLStubApi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_stub_api_base.h
diff --git a/ui/gl/gl_stub_api_base.h b/ui/gl/gl_stub_api_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..13d1fde529cb0e0894ce6ba8a64e49c7a1321cb0
--- /dev/null
+++ b/ui/gl/gl_stub_api_base.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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.
+
+// This file implements a stub GL Interface for unit testing. The interface
+// corresponds to the set of functionally distinct GL functions defined in
+// generate_bindings.py, which may originate from either desktop GL or GLES.
+
+#ifndef UI_GL_GL_STUB_API_BASE_H_
+#define UI_GL_GL_STUB_API_BASE_H_
+
+#include "ui/gl/gl_bindings.h"
+#include "ui/gl/gl_export.h"
+#include "ui/gl/gl_gl_api_implementation.h"
+
+namespace gl {
+
+class GL_EXPORT GLStubApiBase : public gl::GLApi {
+ public:
+ GLStubApiBase() {}
+ ~GLStubApiBase() override {}
+
+#include "ui/gl/gl_stub_autogen_gl.h"
+};
+
+} // namespace gl
+
+#endif // UI_GL_GL_STUB_API_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698