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

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

Issue 2471853002: remove 'unsafe' from ES3 apis in gpu process (Closed)
Patch Set: forgot to save file Created 4 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
Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
index cffb15c924815cecf2cceb837b7eac0b08a6d20e..4392f9e8b4b141a53dfaf653e5404cadee6e4eaf 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
@@ -741,8 +741,6 @@ TEST_P(GLES2DecoderTest, CopyTexImage2DGLError) {
}
TEST_P(GLES2DecoderManualInitTest, CopyTexImage2DUnsizedInternalFormat) {
- base::CommandLine command_line(0, NULL);
- command_line.AppendSwitch(switches::kEnableUnsafeES3APIs);
InitState init;
init.gl_version = "OpenGL ES 3.0";
init.extensions = "GL_APPLE_texture_format_BGRA8888 GL_EXT_sRGB";
@@ -750,7 +748,7 @@ TEST_P(GLES2DecoderManualInitTest, CopyTexImage2DUnsizedInternalFormat) {
init.request_alpha = true;
init.bind_generates_resource = true;
init.context_type = CONTEXT_TYPE_OPENGLES2;
- InitDecoderWithCommandLine(init, &command_line);
+ InitDecoder(init);
GLenum kUnsizedInternalFormats[] = {
GL_RED,
@@ -832,8 +830,6 @@ TEST_P(GLES2DecoderManualInitTest, CopyTexImage2DUnsizedInternalFormat) {
}
TEST_P(GLES2DecoderManualInitTest, CopyTexImage2DUnsizedInternalFormatES3) {
- base::CommandLine command_line(0, NULL);
- command_line.AppendSwitch(switches::kEnableUnsafeES3APIs);
InitState init;
init.gl_version = "OpenGL ES 3.0";
init.extensions = "GL_APPLE_texture_format_BGRA8888";
@@ -841,7 +837,7 @@ TEST_P(GLES2DecoderManualInitTest, CopyTexImage2DUnsizedInternalFormatES3) {
init.request_alpha = true;
init.bind_generates_resource = true;
init.context_type = CONTEXT_TYPE_OPENGLES3;
- InitDecoderWithCommandLine(init, &command_line);
+ InitDecoder(init);
struct UnsizedSizedInternalFormat {
GLenum unsized;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc ('k') | gpu/command_buffer/service/gpu_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698