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 5620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5631 SetupSamplerExternalProgram(); | 5631 SetupSamplerExternalProgram(); |
5632 SetupIndexBuffer(); | 5632 SetupIndexBuffer(); |
5633 AddExpectationsForSimulatedAttrib0(kMaxValidIndex + 1, 0); | 5633 AddExpectationsForSimulatedAttrib0(kMaxValidIndex + 1, 0); |
5634 SetupExpectationsForApplyingDefaultDirtyState(); | 5634 SetupExpectationsForApplyingDefaultDirtyState(); |
5635 EXPECT_TRUE(group().texture_manager()->CanRender(texture_ref)); | 5635 EXPECT_TRUE(group().texture_manager()->CanRender(texture_ref)); |
5636 | 5636 |
5637 InSequence s; | 5637 InSequence s; |
5638 EXPECT_CALL(*stream_texture_manager(), LookupStreamTexture(kServiceTextureId)) | 5638 EXPECT_CALL(*stream_texture_manager(), LookupStreamTexture(kServiceTextureId)) |
5639 .WillOnce(Return(&stream_texture)) | 5639 .WillOnce(Return(&stream_texture)) |
5640 .RetiresOnSaturation(); | 5640 .RetiresOnSaturation(); |
| 5641 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) |
| 5642 .Times(1) |
| 5643 .RetiresOnSaturation(); |
5641 EXPECT_CALL(stream_texture, Update()) | 5644 EXPECT_CALL(stream_texture, Update()) |
5642 .Times(1) | 5645 .Times(1) |
5643 .RetiresOnSaturation(); | 5646 .RetiresOnSaturation(); |
5644 EXPECT_CALL(*gl_, DrawElements(_, _, _, _)) | 5647 EXPECT_CALL(*gl_, DrawElements(_, _, _, _)) |
5645 .Times(1); | 5648 .Times(1); |
5646 DrawElements cmd; | 5649 DrawElements cmd; |
5647 cmd.Init(GL_TRIANGLES, kValidIndexRangeCount, GL_UNSIGNED_SHORT, | 5650 cmd.Init(GL_TRIANGLES, kValidIndexRangeCount, GL_UNSIGNED_SHORT, |
5648 kValidIndexRangeStart * 2); | 5651 kValidIndexRangeStart * 2); |
5649 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 5652 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
5650 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 5653 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
(...skipping 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8521 // TODO(gman): TexImage2DImmediate | 8524 // TODO(gman): TexImage2DImmediate |
8522 | 8525 |
8523 // TODO(gman): TexSubImage2DImmediate | 8526 // TODO(gman): TexSubImage2DImmediate |
8524 | 8527 |
8525 // TODO(gman): UseProgram | 8528 // TODO(gman): UseProgram |
8526 | 8529 |
8527 // TODO(gman): SwapBuffers | 8530 // TODO(gman): SwapBuffers |
8528 | 8531 |
8529 } // namespace gles2 | 8532 } // namespace gles2 |
8530 } // namespace gpu | 8533 } // namespace gpu |
OLD | NEW |