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.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include "base/atomicops.h" | 7 #include "base/atomicops.h" |
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
10 #include "gpu/command_buffer/common/id_allocator.h" | 10 #include "gpu/command_buffer/common/id_allocator.h" |
(...skipping 5741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5752 SetupSamplerExternalProgram(); | 5752 SetupSamplerExternalProgram(); |
5753 SetupIndexBuffer(); | 5753 SetupIndexBuffer(); |
5754 AddExpectationsForSimulatedAttrib0(kMaxValidIndex + 1, 0); | 5754 AddExpectationsForSimulatedAttrib0(kMaxValidIndex + 1, 0); |
5755 SetupExpectationsForApplyingDefaultDirtyState(); | 5755 SetupExpectationsForApplyingDefaultDirtyState(); |
5756 EXPECT_TRUE(group().texture_manager()->CanRender(texture_ref)); | 5756 EXPECT_TRUE(group().texture_manager()->CanRender(texture_ref)); |
5757 | 5757 |
5758 InSequence s; | 5758 InSequence s; |
5759 EXPECT_CALL(*stream_texture_manager(), LookupStreamTexture(kServiceTextureId)) | 5759 EXPECT_CALL(*stream_texture_manager(), LookupStreamTexture(kServiceTextureId)) |
5760 .WillOnce(Return(&stream_texture)) | 5760 .WillOnce(Return(&stream_texture)) |
5761 .RetiresOnSaturation(); | 5761 .RetiresOnSaturation(); |
| 5762 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) |
| 5763 .Times(1) |
| 5764 .RetiresOnSaturation(); |
5762 EXPECT_CALL(stream_texture, Update()) | 5765 EXPECT_CALL(stream_texture, Update()) |
5763 .Times(1) | 5766 .Times(1) |
5764 .RetiresOnSaturation(); | 5767 .RetiresOnSaturation(); |
5765 EXPECT_CALL(*gl_, DrawElements(_, _, _, _)) | 5768 EXPECT_CALL(*gl_, DrawElements(_, _, _, _)) |
5766 .Times(1); | 5769 .Times(1); |
5767 DrawElements cmd; | 5770 DrawElements cmd; |
5768 cmd.Init(GL_TRIANGLES, kValidIndexRangeCount, GL_UNSIGNED_SHORT, | 5771 cmd.Init(GL_TRIANGLES, kValidIndexRangeCount, GL_UNSIGNED_SHORT, |
5769 kValidIndexRangeStart * 2); | 5772 kValidIndexRangeStart * 2); |
5770 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 5773 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
5771 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 5774 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
(...skipping 2889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8661 // TODO(gman): TexImage2DImmediate | 8664 // TODO(gman): TexImage2DImmediate |
8662 | 8665 |
8663 // TODO(gman): TexSubImage2DImmediate | 8666 // TODO(gman): TexSubImage2DImmediate |
8664 | 8667 |
8665 // TODO(gman): UseProgram | 8668 // TODO(gman): UseProgram |
8666 | 8669 |
8667 // TODO(gman): SwapBuffers | 8670 // TODO(gman): SwapBuffers |
8668 | 8671 |
8669 } // namespace gles2 | 8672 } // namespace gles2 |
8670 } // namespace gpu | 8673 } // namespace gpu |
OLD | NEW |