Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: gpu/command_buffer/service/framebuffer_manager_unittest.cc

Issue 2471853002: remove 'unsafe' from ES3 apis in gpu process (Closed)
Patch Set: forgot to save file Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gl_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gl_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698