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