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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 .RetiresOnSaturation(); | 427 .RetiresOnSaturation(); |
428 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)) | 428 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)) |
429 .Times(1) | 429 .Times(1) |
430 .RetiresOnSaturation(); | 430 .RetiresOnSaturation(); |
431 EXPECT_CALL(*gl_, BindFramebufferEXT(GL_FRAMEBUFFER, 0)) | 431 EXPECT_CALL(*gl_, BindFramebufferEXT(GL_FRAMEBUFFER, 0)) |
432 .Times(1) | 432 .Times(1) |
433 .RetiresOnSaturation(); | 433 .RetiresOnSaturation(); |
434 EXPECT_CALL(*gl_, BindRenderbufferEXT(GL_RENDERBUFFER, 0)) | 434 EXPECT_CALL(*gl_, BindRenderbufferEXT(GL_RENDERBUFFER, 0)) |
435 .Times(1) | 435 .Times(1) |
436 .RetiresOnSaturation(); | 436 .RetiresOnSaturation(); |
| 437 if (feature_info->feature_flags().desktop_srgb_support) { |
| 438 EXPECT_CALL(*gl_, Disable(GL_FRAMEBUFFER_SRGB)) |
| 439 .Times(1) |
| 440 .RetiresOnSaturation(); |
| 441 } |
437 | 442 |
438 // TODO(boliu): Remove OS_ANDROID once crbug.com/259023 is fixed and the | 443 // TODO(boliu): Remove OS_ANDROID once crbug.com/259023 is fixed and the |
439 // workaround has been reverted. | 444 // workaround has been reverted. |
440 #if !defined(OS_ANDROID) | 445 #if !defined(OS_ANDROID) |
441 if (normalized_init.has_alpha && !normalized_init.request_alpha) { | 446 if (normalized_init.has_alpha && !normalized_init.request_alpha) { |
442 EXPECT_CALL(*gl_, ClearColor(0, 0, 0, 1)).Times(1).RetiresOnSaturation(); | 447 EXPECT_CALL(*gl_, ClearColor(0, 0, 0, 1)).Times(1).RetiresOnSaturation(); |
443 } | 448 } |
444 | 449 |
445 EXPECT_CALL(*gl_, Clear( | 450 EXPECT_CALL(*gl_, Clear( |
446 GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT)) | 451 GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT)) |
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2118 SetupDefaultProgram(); | 2123 SetupDefaultProgram(); |
2119 } | 2124 } |
2120 | 2125 |
2121 // Include the auto-generated part of this file. We split this because it means | 2126 // Include the auto-generated part of this file. We split this because it means |
2122 // we can easily edit the non-auto generated parts right here in this file | 2127 // we can easily edit the non-auto generated parts right here in this file |
2123 // instead of having to edit some template or the code generator. | 2128 // instead of having to edit some template or the code generator. |
2124 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 2129 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
2125 | 2130 |
2126 } // namespace gles2 | 2131 } // namespace gles2 |
2127 } // namespace gpu | 2132 } // namespace gpu |
OLD | NEW |