| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <GLES2/gl2extchromium.h> | 7 #include <GLES2/gl2extchromium.h> |
| 8 #include <GLES3/gl3.h> | 8 #include <GLES3/gl3.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Somewhat counterintuitively, requesting an extension that is offered | 89 // Somewhat counterintuitively, requesting an extension that is offered |
| 90 // does not necessarily make it appear in the extensions list. | 90 // does not necessarily make it appear in the extensions list. |
| 91 // This is due to the fact that offered extensions list contains every | 91 // This is due to the fact that offered extensions list contains every |
| 92 // available extension, while WebGL2 filters extension list | 92 // available extension, while WebGL2 filters extension list |
| 93 // based on what's in core WebGL2. | 93 // based on what's in core WebGL2. |
| 94 | 94 |
| 95 // Test that RequestExtension does not erase any extensions. | 95 // Test that RequestExtension does not erase any extensions. |
| 96 EXPECT_GE(extensions.size(), extensions_size_before_request); | 96 EXPECT_GE(extensions.size(), extensions_size_before_request); |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 INSTANTIATE_TEST_CASE_P(WithContextTypes, | 99 INSTANTIATE_TEST_CASE_P( |
| 100 RequestExtensionCHROMIUMTest, | 100 WithContextTypes, |
| 101 ::testing::Values(gles2::CONTEXT_TYPE_WEBGL1, | 101 RequestExtensionCHROMIUMTest, |
| 102 gles2::CONTEXT_TYPE_WEBGL2, | 102 ::testing::Values(gles2::CONTEXT_TYPE_WEBGL1, |
| 103 gles2::CONTEXT_TYPE_OPENGLES2, | 103 gles2::CONTEXT_TYPE_WEBGL2, |
| 104 gles2::CONTEXT_TYPE_OPENGLES3)); | 104 gles2::CONTEXT_TYPE_OPENGLES2, |
| 105 gles2::CONTEXT_TYPE_OPENGLES3, |
| 106 gles2::CONTEXT_TYPE_OPENGLES2_PEPPER)); |
| 105 } | 107 } |
| OLD | NEW |