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

Side by Side Diff: gpu/command_buffer/tests/gl_unittest.cc

Issue 2758173003: Expose GL_VENDOR/GL_RENDERER strings to internal clients of GPU command buffer. (Closed)
Patch Set: Fixing gl_tests Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 EXPECT_EQ(caps.occlusion_query_boolean, flags.occlusion_query_boolean); 126 EXPECT_EQ(caps.occlusion_query_boolean, flags.occlusion_query_boolean);
127 } 127 }
128 128
129 TEST_F(GLTest, GetString) { 129 TEST_F(GLTest, GetString) {
130 EXPECT_STREQ( 130 EXPECT_STREQ(
131 "OpenGL ES 2.0 Chromium", 131 "OpenGL ES 2.0 Chromium",
132 reinterpret_cast<const char*>(glGetString(GL_VERSION))); 132 reinterpret_cast<const char*>(glGetString(GL_VERSION)));
133 EXPECT_STREQ( 133 EXPECT_STREQ(
134 "OpenGL ES GLSL ES 1.0 Chromium", 134 "OpenGL ES GLSL ES 1.0 Chromium",
135 reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION))); 135 reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION)));
136 EXPECT_STREQ(
137 "Chromium",
138 reinterpret_cast<const char*>(glGetString(GL_RENDERER)));
139 EXPECT_STREQ(
140 "Chromium",
141 reinterpret_cast<const char*>(glGetString(GL_VENDOR)));
142 } 136 }
143 137
144 } // namespace gpu 138 } // namespace gpu
145
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698