| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "gpu/command_buffer/service/error_state_mock.h" | 8 #include "gpu/command_buffer/service/error_state_mock.h" |
| 9 #include "gpu/command_buffer/service/feature_info.h" | 9 #include "gpu/command_buffer/service/feature_info.h" |
| 10 #include "gpu/command_buffer/service/framebuffer_manager.h" | 10 #include "gpu/command_buffer/service/framebuffer_manager.h" |
| (...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1278 // Call it a second time - making sure DrawBuffers isn't triggered. | 1278 // Call it a second time - making sure DrawBuffers isn't triggered. |
| 1279 EXPECT_CALL(*gl_, DrawBuffersARB(kMaxDrawBuffers, _)) | 1279 EXPECT_CALL(*gl_, DrawBuffersARB(kMaxDrawBuffers, _)) |
| 1280 .Times(0); | 1280 .Times(0); |
| 1281 EXPECT_TRUE( | 1281 EXPECT_TRUE( |
| 1282 framebuffer_->ValidateAndAdjustDrawBuffers(0x310u, 0x330u)); | 1282 framebuffer_->ValidateAndAdjustDrawBuffers(0x310u, 0x330u)); |
| 1283 } | 1283 } |
| 1284 | 1284 |
| 1285 class FramebufferInfoFloatTest : public FramebufferInfoTestBase { | 1285 class FramebufferInfoFloatTest : public FramebufferInfoTestBase { |
| 1286 public: | 1286 public: |
| 1287 FramebufferInfoFloatTest() | 1287 FramebufferInfoFloatTest() |
| 1288 : FramebufferInfoTestBase(CONTEXT_TYPE_OPENGLES2) {} | 1288 : FramebufferInfoTestBase(CONTEXT_TYPE_OPENGLES3) {} |
| 1289 ~FramebufferInfoFloatTest() override {} | 1289 ~FramebufferInfoFloatTest() override {} |
| 1290 | 1290 |
| 1291 protected: | 1291 protected: |
| 1292 void SetUp() override { | 1292 void SetUp() override { |
| 1293 InitializeContext("OpenGL ES 3.0", | 1293 InitializeContext("OpenGL ES 3.0", |
| 1294 "GL_OES_texture_float GL_EXT_color_buffer_float"); | 1294 "GL_OES_texture_float GL_EXT_color_buffer_float"); |
| 1295 } | 1295 } |
| 1296 }; | 1296 }; |
| 1297 | 1297 |
| 1298 TEST_F(FramebufferInfoFloatTest, AttachFloatTexture) { | 1298 TEST_F(FramebufferInfoFloatTest, AttachFloatTexture) { |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1643 renderbuffer_manager_->GetRenderbuffer(kRenderbufferClientId); | 1643 renderbuffer_manager_->GetRenderbuffer(kRenderbufferClientId); |
| 1644 ASSERT_TRUE(renderbuffer != nullptr); | 1644 ASSERT_TRUE(renderbuffer != nullptr); |
| 1645 framebuffer_->AttachRenderbuffer(GL_COLOR_ATTACHMENT1, renderbuffer); | 1645 framebuffer_->AttachRenderbuffer(GL_COLOR_ATTACHMENT1, renderbuffer); |
| 1646 EXPECT_TRUE(framebuffer_->GetReadBufferAttachment()); | 1646 EXPECT_TRUE(framebuffer_->GetReadBufferAttachment()); |
| 1647 } | 1647 } |
| 1648 | 1648 |
| 1649 } // namespace gles2 | 1649 } // namespace gles2 |
| 1650 } // namespace gpu | 1650 } // namespace gpu |
| 1651 | 1651 |
| 1652 | 1652 |
| OLD | NEW |