| 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(); | |
| 431 } | 430 } |
| 432 | 431 |
| 433 void GLES2DecoderTestBase::TearDown() { | 432 void GLES2DecoderTestBase::TearDown() { |
| 434 ResetDecoder(); | 433 ResetDecoder(); |
| 435 } | 434 } |
| 436 | 435 |
| 437 void GLES2DecoderTestBase::ExpectEnableDisable(GLenum cap, bool enable) { | 436 void GLES2DecoderTestBase::ExpectEnableDisable(GLenum cap, bool enable) { |
| 438 if (enable) { | 437 if (enable) { |
| 439 EXPECT_CALL(*gl_, Enable(cap)) | 438 EXPECT_CALL(*gl_, Enable(cap)) |
| 440 .Times(1) | 439 .Times(1) |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 SetupDefaultProgram(); | 1614 SetupDefaultProgram(); |
| 1616 } | 1615 } |
| 1617 | 1616 |
| 1618 // Include the auto-generated part of this file. We split this because it means | 1617 // Include the auto-generated part of this file. We split this because it means |
| 1619 // we can easily edit the non-auto generated parts right here in this file | 1618 // we can easily edit the non-auto generated parts right here in this file |
| 1620 // instead of having to edit some template or the code generator. | 1619 // instead of having to edit some template or the code generator. |
| 1621 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 1620 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
| 1622 | 1621 |
| 1623 } // namespace gles2 | 1622 } // namespace gles2 |
| 1624 } // namespace gpu | 1623 } // namespace gpu |
| OLD | NEW |