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

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

Issue 1174733003: cc, gpu: Use RGBA when using msaa on systems that don't support BGRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 5 years, 6 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.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 7
8 #include "gpu/command_buffer/service/feature_info.h" 8 #include "gpu/command_buffer/service/feature_info.h"
9 #include "gpu/command_buffer/tests/gl_manager.h" 9 #include "gpu/command_buffer/tests/gl_manager.h"
10 #include "gpu/command_buffer/tests/gl_test_utils.h" 10 #include "gpu/command_buffer/tests/gl_test_utils.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 EXPECT_EQ(caps.texture_format_etc1, flags.oes_compressed_etc1_rgb8_texture); 99 EXPECT_EQ(caps.texture_format_etc1, flags.oes_compressed_etc1_rgb8_texture);
100 EXPECT_EQ(caps.texture_rectangle, flags.arb_texture_rectangle); 100 EXPECT_EQ(caps.texture_rectangle, flags.arb_texture_rectangle);
101 EXPECT_EQ(caps.texture_usage, flags.angle_texture_usage); 101 EXPECT_EQ(caps.texture_usage, flags.angle_texture_usage);
102 EXPECT_EQ(caps.texture_storage, flags.ext_texture_storage); 102 EXPECT_EQ(caps.texture_storage, flags.ext_texture_storage);
103 EXPECT_EQ(caps.discard_framebuffer, flags.ext_discard_framebuffer); 103 EXPECT_EQ(caps.discard_framebuffer, flags.ext_discard_framebuffer);
104 EXPECT_EQ(caps.sync_query, flags.chromium_sync_query); 104 EXPECT_EQ(caps.sync_query, flags.chromium_sync_query);
105 EXPECT_EQ(caps.blend_equation_advanced, flags.blend_equation_advanced); 105 EXPECT_EQ(caps.blend_equation_advanced, flags.blend_equation_advanced);
106 EXPECT_EQ(caps.blend_equation_advanced_coherent, 106 EXPECT_EQ(caps.blend_equation_advanced_coherent,
107 flags.blend_equation_advanced_coherent); 107 flags.blend_equation_advanced_coherent);
108 EXPECT_EQ(caps.texture_rg, flags.ext_texture_rg); 108 EXPECT_EQ(caps.texture_rg, flags.ext_texture_rg);
109 EXPECT_EQ(caps.render_buffer_format_bgra8888,
110 flags.ext_render_buffer_format_bgra8888);
109 } 111 }
110 112
111 TEST_F(GLTest, GetString) { 113 TEST_F(GLTest, GetString) {
112 EXPECT_STREQ( 114 EXPECT_STREQ(
113 "OpenGL ES 2.0 Chromium", 115 "OpenGL ES 2.0 Chromium",
114 reinterpret_cast<const char*>(glGetString(GL_VERSION))); 116 reinterpret_cast<const char*>(glGetString(GL_VERSION)));
115 EXPECT_STREQ( 117 EXPECT_STREQ(
116 "OpenGL ES GLSL ES 1.0 Chromium", 118 "OpenGL ES GLSL ES 1.0 Chromium",
117 reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION))); 119 reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION)));
118 EXPECT_STREQ( 120 EXPECT_STREQ(
119 "Chromium", 121 "Chromium",
120 reinterpret_cast<const char*>(glGetString(GL_RENDERER))); 122 reinterpret_cast<const char*>(glGetString(GL_RENDERER)));
121 EXPECT_STREQ( 123 EXPECT_STREQ(
122 "Chromium", 124 "Chromium",
123 reinterpret_cast<const char*>(glGetString(GL_VENDOR))); 125 reinterpret_cast<const char*>(glGetString(GL_VENDOR)));
124 } 126 }
125 127
126 } // namespace gpu 128 } // namespace gpu
127 129
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698