OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "gpu/command_buffer/common/gl_mock.h" | 7 #include "gpu/command_buffer/common/gl_mock.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/service/gles2_cmd_decoder_unittest_base.h" | 10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 }; | 52 }; |
53 | 53 |
54 template <> | 54 template <> |
55 void GLES2DecoderTestBase::SpecializedSetup<CheckFramebufferStatus, 0>( | 55 void GLES2DecoderTestBase::SpecializedSetup<CheckFramebufferStatus, 0>( |
56 bool /* valid */) { | 56 bool /* valid */) { |
57 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_, | 57 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_, |
58 kServiceFramebufferId); | 58 kServiceFramebufferId); |
59 }; | 59 }; |
60 | 60 |
61 template <> | 61 template <> |
| 62 void GLES2DecoderTestBase::SpecializedSetup<Clear, 0>(bool valid) { |
| 63 if (valid) { |
| 64 SetupExpectationsForApplyingDefaultDirtyState(); |
| 65 } |
| 66 }; |
| 67 |
| 68 template <> |
| 69 void GLES2DecoderTestBase::SpecializedSetup<ColorMask, 0>( |
| 70 bool /* valid */) { |
| 71 // We bind a framebuffer color the colormask test since the framebuffer |
| 72 // will be considered RGB. |
| 73 DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_, |
| 74 kServiceFramebufferId); |
| 75 }; |
| 76 |
| 77 template <> |
62 void GLES2DecoderTestBase::SpecializedSetup<CopyTexImage2D, 0>( | 78 void GLES2DecoderTestBase::SpecializedSetup<CopyTexImage2D, 0>( |
63 bool valid) { | 79 bool valid) { |
64 if (valid) { | 80 if (valid) { |
65 EXPECT_CALL(*gl_, GetError()) | 81 EXPECT_CALL(*gl_, GetError()) |
66 .WillOnce(Return(GL_NO_ERROR)) | 82 .WillOnce(Return(GL_NO_ERROR)) |
67 .WillOnce(Return(GL_NO_ERROR)) | 83 .WillOnce(Return(GL_NO_ERROR)) |
68 .RetiresOnSaturation(); | 84 .RetiresOnSaturation(); |
69 } | 85 } |
70 }; | 86 }; |
71 | 87 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 .WillOnce(Return(GL_NO_ERROR)) | 238 .WillOnce(Return(GL_NO_ERROR)) |
223 .RetiresOnSaturation(); | 239 .RetiresOnSaturation(); |
224 } | 240 } |
225 }; | 241 }; |
226 | 242 |
227 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" | 243 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" |
228 | 244 |
229 } // namespace gles2 | 245 } // namespace gles2 |
230 } // namespace gpu | 246 } // namespace gpu |
231 | 247 |
OLD | NEW |