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_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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 .RetiresOnSaturation(); | 420 .RetiresOnSaturation(); |
421 } | 421 } |
422 | 422 |
423 decoder_->EndDecoding(); | 423 decoder_->EndDecoding(); |
424 decoder_->Destroy(true); | 424 decoder_->Destroy(true); |
425 decoder_.reset(); | 425 decoder_.reset(); |
426 group_->Destroy(mock_decoder_.get(), false); | 426 group_->Destroy(mock_decoder_.get(), false); |
427 engine_.reset(); | 427 engine_.reset(); |
428 ::gfx::MockGLInterface::SetGLInterface(NULL); | 428 ::gfx::MockGLInterface::SetGLInterface(NULL); |
429 gl_.reset(); | 429 gl_.reset(); |
| 430 gfx::ClearGLBindings(); |
430 } | 431 } |
431 | 432 |
432 void GLES2DecoderTestBase::TearDown() { | 433 void GLES2DecoderTestBase::TearDown() { |
433 ResetDecoder(); | 434 ResetDecoder(); |
434 } | 435 } |
435 | 436 |
436 void GLES2DecoderTestBase::ExpectEnableDisable(GLenum cap, bool enable) { | 437 void GLES2DecoderTestBase::ExpectEnableDisable(GLenum cap, bool enable) { |
437 if (enable) { | 438 if (enable) { |
438 EXPECT_CALL(*gl_, Enable(cap)) | 439 EXPECT_CALL(*gl_, Enable(cap)) |
439 .Times(1) | 440 .Times(1) |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 SetupDefaultProgram(); | 1615 SetupDefaultProgram(); |
1615 } | 1616 } |
1616 | 1617 |
1617 // Include the auto-generated part of this file. We split this because it means | 1618 // Include the auto-generated part of this file. We split this because it means |
1618 // we can easily edit the non-auto generated parts right here in this file | 1619 // we can easily edit the non-auto generated parts right here in this file |
1619 // instead of having to edit some template or the code generator. | 1620 // instead of having to edit some template or the code generator. |
1620 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 1621 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
1621 | 1622 |
1622 } // namespace gles2 | 1623 } // namespace gles2 |
1623 } // namespace gpu | 1624 } // namespace gpu |
OLD | NEW |