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

Unified Diff: cc/test/test_gles2_interface.cc

Issue 92593004: Use GLES2Interface for shader programs Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « cc/test/test_gles2_interface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_gles2_interface.cc
diff --git a/cc/test/test_gles2_interface.cc b/cc/test/test_gles2_interface.cc
index 585a4bd9833cf2b107d5e94cb2dfbf6beac7c7e1..7a416e59cda1676c01244f3b597d3df488c670b2 100644
--- a/cc/test/test_gles2_interface.cc
+++ b/cc/test/test_gles2_interface.cc
@@ -129,12 +129,23 @@ GLint TestGLES2Interface::GetUniformLocation(
}
void TestGLES2Interface::GetVertexAttribPointerv(
- GLuint index,
- GLenum pname,
- void** pointer) {
+ GLuint index, GLenum pname, void** pointer) {
*pointer = NULL;
}
+void TestGLES2Interface::GetProgramiv(
+ GLuint program, GLenum pname, GLint* params) {
+ if (pname == GL_LINK_STATUS)
+ *params = 1;
+}
+
+void TestGLES2Interface::GetShaderiv(GLuint shader,
+ GLenum pname,
+ GLint* params) {
+ if (pname == GL_COMPILE_STATUS)
+ *params = 1;
+}
+
void TestGLES2Interface::GenBuffers(GLsizei count, GLuint* ids) {
for (int i = 0; i < count; ++i)
ids[i] = NextBufferId();
@@ -590,3 +601,4 @@ TestGLES2Interface::Image::Image() {}
TestGLES2Interface::Image::~Image() {}
} // namespace cc
+
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698