| OLD | NEW |
| 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 <GLES2/gl2extchromium.h> | 7 #include <GLES2/gl2extchromium.h> |
| 8 | 8 |
| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 GLTestHelper::CheckPixels(0, 0, kSize2, kSize2, 0, kExpectedGreen)); | 297 GLTestHelper::CheckPixels(0, 0, kSize2, kSize2, 0, kExpectedGreen)); |
| 298 glFinish(); | 298 glFinish(); |
| 299 | 299 |
| 300 GLTestHelper::CheckGLError("no errors", __LINE__); | 300 GLTestHelper::CheckGLError("no errors", __LINE__); |
| 301 } | 301 } |
| 302 | 302 |
| 303 TEST_F(GLVirtualContextsTest, VirtualQueries) { | 303 TEST_F(GLVirtualContextsTest, VirtualQueries) { |
| 304 const GLenum query_targets[] = { | 304 const GLenum query_targets[] = { |
| 305 GL_ANY_SAMPLES_PASSED_EXT, | 305 GL_ANY_SAMPLES_PASSED_EXT, |
| 306 GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT, | 306 GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT, |
| 307 // TODO(dyen): (http://crbug.com/514124) Figure out a way to test this, | |
| 308 // the function AsyncPixelTransferManagerEGL::AsyncNotifyCompletion | |
| 309 // completes asynchronously. | |
| 310 // GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM, | |
| 311 GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM, | 307 GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM, |
| 312 GL_COMMANDS_COMPLETED_CHROMIUM, | 308 GL_COMMANDS_COMPLETED_CHROMIUM, |
| 313 GL_COMMANDS_ISSUED_CHROMIUM, | 309 GL_COMMANDS_ISSUED_CHROMIUM, |
| 314 GL_GET_ERROR_QUERY_CHROMIUM, | 310 GL_GET_ERROR_QUERY_CHROMIUM, |
| 315 GL_LATENCY_QUERY_CHROMIUM, | 311 GL_LATENCY_QUERY_CHROMIUM, |
| 316 GL_TIME_ELAPSED_EXT, | 312 GL_TIME_ELAPSED_EXT, |
| 317 }; | 313 }; |
| 318 | 314 |
| 319 for (GLenum query_target : query_targets) { | 315 for (GLenum query_target : query_targets) { |
| 320 GLuint query1 = 0; | 316 GLuint query1 = 0; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 &query2_available); | 353 &query2_available); |
| 358 EXPECT_TRUE(query2_available); | 354 EXPECT_TRUE(query2_available); |
| 359 | 355 |
| 360 glDeleteQueriesEXT(1, &query2); | 356 glDeleteQueriesEXT(1, &query2); |
| 361 GLTestHelper::CheckGLError("no errors", __LINE__); | 357 GLTestHelper::CheckGLError("no errors", __LINE__); |
| 362 } | 358 } |
| 363 } | 359 } |
| 364 | 360 |
| 365 } // namespace gpu | 361 } // namespace gpu |
| 366 | 362 |
| OLD | NEW |