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 // Tests for GLES2Implementation. | 5 // Tests for GLES2Implementation. |
6 | 6 |
7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 sizeof(cmds::GetShaderPrecisionFormat::Result) * 12); | 438 sizeof(cmds::GetShaderPrecisionFormat::Result) * 12); |
439 | 439 |
440 { | 440 { |
441 InSequence sequence; | 441 InSequence sequence; |
442 | 442 |
443 EXPECT_CALL(*command_buffer_, OnFlush()) | 443 EXPECT_CALL(*command_buffer_, OnFlush()) |
444 .WillOnce(SetMemory(mem1.ptr + sizeof(int_state), int_state)) | 444 .WillOnce(SetMemory(mem1.ptr + sizeof(int_state), int_state)) |
445 .RetiresOnSaturation(); | 445 .RetiresOnSaturation(); |
446 GetNextToken(); // eat the token that starting up will use. | 446 GetNextToken(); // eat the token that starting up will use. |
447 | 447 |
| 448 const bool support_client_side_arrays = true; |
448 gl_.reset(new GLES2Implementation(helper_.get(), | 449 gl_.reset(new GLES2Implementation(helper_.get(), |
449 share_group, | 450 share_group, |
450 transfer_buffer_.get(), | 451 transfer_buffer_.get(), |
451 bind_generates_resource_client, | 452 bind_generates_resource_client, |
452 lose_context_when_out_of_memory, | 453 lose_context_when_out_of_memory, |
| 454 support_client_side_arrays, |
453 gpu_control_.get())); | 455 gpu_control_.get())); |
454 | 456 |
455 if (!gl_->Initialize(kTransferBufferSize, | 457 if (!gl_->Initialize(kTransferBufferSize, |
456 kTransferBufferSize, | 458 kTransferBufferSize, |
457 kTransferBufferSize, | 459 kTransferBufferSize, |
458 GLES2Implementation::kNoLimit)) | 460 GLES2Implementation::kNoLimit)) |
459 return false; | 461 return false; |
460 } | 462 } |
461 | 463 |
462 EXPECT_CALL(*command_buffer_, OnFlush()).Times(1).RetiresOnSaturation(); | 464 EXPECT_CALL(*command_buffer_, OnFlush()).Times(1).RetiresOnSaturation(); |
(...skipping 2940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3403 ContextInitOptions init_options; | 3405 ContextInitOptions init_options; |
3404 init_options.bind_generates_resource_client = true; | 3406 init_options.bind_generates_resource_client = true; |
3405 init_options.bind_generates_resource_service = false; | 3407 init_options.bind_generates_resource_service = false; |
3406 EXPECT_FALSE(Initialize(init_options)); | 3408 EXPECT_FALSE(Initialize(init_options)); |
3407 } | 3409 } |
3408 | 3410 |
3409 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" | 3411 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" |
3410 | 3412 |
3411 } // namespace gles2 | 3413 } // namespace gles2 |
3412 } // namespace gpu | 3414 } // namespace gpu |
OLD | NEW |