OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
11 #include "gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h" | |
12 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h" | |
13 #include "gpu/command_buffer/service/async_pixel_transfer_manager_mock.h" | |
14 #include "gpu/command_buffer/service/cmd_buffer_engine.h" | 11 #include "gpu/command_buffer/service/cmd_buffer_engine.h" |
15 #include "gpu/command_buffer/service/context_group.h" | 12 #include "gpu/command_buffer/service/context_group.h" |
16 #include "gpu/command_buffer/service/context_state.h" | 13 #include "gpu/command_buffer/service/context_state.h" |
17 #include "gpu/command_buffer/service/gl_surface_mock.h" | 14 #include "gpu/command_buffer/service/gl_surface_mock.h" |
18 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 15 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
19 #include "gpu/command_buffer/service/image_manager.h" | 16 #include "gpu/command_buffer/service/image_manager.h" |
20 #include "gpu/command_buffer/service/mailbox_manager.h" | 17 #include "gpu/command_buffer/service/mailbox_manager.h" |
21 #include "gpu/command_buffer/service/mocks.h" | 18 #include "gpu/command_buffer/service/mocks.h" |
22 #include "gpu/command_buffer/service/program_manager.h" | 19 #include "gpu/command_buffer/service/program_manager.h" |
23 #include "gpu/command_buffer/service/test_helper.h" | 20 #include "gpu/command_buffer/service/test_helper.h" |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 } | 559 } |
563 | 560 |
564 struct QueryType { | 561 struct QueryType { |
565 GLenum type; | 562 GLenum type; |
566 bool is_counter; | 563 bool is_counter; |
567 }; | 564 }; |
568 | 565 |
569 const QueryType kQueryTypes[] = { | 566 const QueryType kQueryTypes[] = { |
570 {GL_COMMANDS_ISSUED_CHROMIUM, false}, | 567 {GL_COMMANDS_ISSUED_CHROMIUM, false}, |
571 {GL_LATENCY_QUERY_CHROMIUM, false}, | 568 {GL_LATENCY_QUERY_CHROMIUM, false}, |
572 {GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM, false}, | |
573 {GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM, false}, | 569 {GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM, false}, |
574 {GL_GET_ERROR_QUERY_CHROMIUM, false}, | 570 {GL_GET_ERROR_QUERY_CHROMIUM, false}, |
575 {GL_COMMANDS_COMPLETED_CHROMIUM, false}, | 571 {GL_COMMANDS_COMPLETED_CHROMIUM, false}, |
576 {GL_ANY_SAMPLES_PASSED_EXT, false}, | 572 {GL_ANY_SAMPLES_PASSED_EXT, false}, |
577 {GL_TIME_ELAPSED, false}, | 573 {GL_TIME_ELAPSED, false}, |
578 {GL_TIMESTAMP, true}, | 574 {GL_TIMESTAMP, true}, |
579 }; | 575 }; |
580 const GLsync kGlSync = reinterpret_cast<GLsync>(0xdeadbeef); | 576 const GLsync kGlSync = reinterpret_cast<GLsync>(0xdeadbeef); |
581 | 577 |
582 static void ExecuteGenerateQueryCmd(GLES2DecoderTestBase* test, | 578 static void ExecuteGenerateQueryCmd(GLES2DecoderTestBase* test, |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 INSTANTIATE_TEST_CASE_P(Service, | 1578 INSTANTIATE_TEST_CASE_P(Service, |
1583 GLES2DecoderRGBBackbufferTest, | 1579 GLES2DecoderRGBBackbufferTest, |
1584 ::testing::Bool()); | 1580 ::testing::Bool()); |
1585 | 1581 |
1586 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); | 1582 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); |
1587 | 1583 |
1588 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); | 1584 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); |
1589 | 1585 |
1590 } // namespace gles2 | 1586 } // namespace gles2 |
1591 } // namespace gpu | 1587 } // namespace gpu |
OLD | NEW |