| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_base.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 gl_.reset(new StrictMock<MockGLInterface>()); | 40 gl_.reset(new StrictMock<MockGLInterface>()); |
| 41 ::gfx::GLInterface::SetGLInterface(gl_.get()); | 41 ::gfx::GLInterface::SetGLInterface(gl_.get()); |
| 42 group_ = ContextGroup::Ref(new ContextGroup()); | 42 group_ = ContextGroup::Ref(new ContextGroup()); |
| 43 | 43 |
| 44 InSequence sequence; | 44 InSequence sequence; |
| 45 | 45 |
| 46 TestHelper::SetupContextGroupInitExpectations(gl_.get(), extensions); | 46 TestHelper::SetupContextGroupInitExpectations(gl_.get(), extensions); |
| 47 | 47 |
| 48 EXPECT_TRUE(group_->Initialize(extensions)); | 48 EXPECT_TRUE(group_->Initialize(extensions)); |
| 49 | 49 |
| 50 EXPECT_CALL(*gl_, GetIntegerv(GL_ALPHA_BITS, _)) |
| 51 .WillOnce(SetArgumentPointee<1>(8)) |
| 52 .RetiresOnSaturation(); |
| 50 EXPECT_CALL(*gl_, EnableVertexAttribArray(0)) | 53 EXPECT_CALL(*gl_, EnableVertexAttribArray(0)) |
| 51 .Times(1) | 54 .Times(1) |
| 52 .RetiresOnSaturation(); | 55 .RetiresOnSaturation(); |
| 53 static GLuint attrib_0_id[] = { | 56 static GLuint attrib_0_id[] = { |
| 54 kServiceAttrib0BufferId, | 57 kServiceAttrib0BufferId, |
| 55 }; | 58 }; |
| 56 static GLuint fixed_attrib_buffer_id[] = { | 59 static GLuint fixed_attrib_buffer_id[] = { |
| 57 kServiceFixedAttribBufferId, | 60 kServiceFixedAttribBufferId, |
| 58 }; | 61 }; |
| 59 EXPECT_CALL(*gl_, GenBuffersARB(arraysize(attrib_0_id), _)) | 62 EXPECT_CALL(*gl_, GenBuffersARB(arraysize(attrib_0_id), _)) |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 | 788 |
| 786 const char* GLES2DecoderWithShaderTestBase::kAttrib1Name = "attrib1"; | 789 const char* GLES2DecoderWithShaderTestBase::kAttrib1Name = "attrib1"; |
| 787 const char* GLES2DecoderWithShaderTestBase::kAttrib2Name = "attrib2"; | 790 const char* GLES2DecoderWithShaderTestBase::kAttrib2Name = "attrib2"; |
| 788 const char* GLES2DecoderWithShaderTestBase::kAttrib3Name = "attrib3"; | 791 const char* GLES2DecoderWithShaderTestBase::kAttrib3Name = "attrib3"; |
| 789 const char* GLES2DecoderWithShaderTestBase::kUniform1Name = "uniform1"; | 792 const char* GLES2DecoderWithShaderTestBase::kUniform1Name = "uniform1"; |
| 790 const char* GLES2DecoderWithShaderTestBase::kUniform2Name = "uniform2[0]"; | 793 const char* GLES2DecoderWithShaderTestBase::kUniform2Name = "uniform2[0]"; |
| 791 const char* GLES2DecoderWithShaderTestBase::kUniform3Name = "uniform3[0]"; | 794 const char* GLES2DecoderWithShaderTestBase::kUniform3Name = "uniform3[0]"; |
| 792 | 795 |
| 793 } // namespace gles2 | 796 } // namespace gles2 |
| 794 } // namespace gpu | 797 } // namespace gpu |
| OLD | NEW |