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

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

Issue 2826043002: Do not share FBOs/VAOs/Transform feedback objects across contexts (Closed)
Patch Set: added DeleteFramebuffers() expectation Created 3 years, 7 months 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
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 "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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 535 EXPECT_EQ(GL_NO_ERROR, GetGLError());
536 } 536 }
537 537
538 void GLES2DecoderTestBase::ResetDecoder() { 538 void GLES2DecoderTestBase::ResetDecoder() {
539 if (!decoder_.get()) 539 if (!decoder_.get())
540 return; 540 return;
541 // All Tests should have read all their GLErrors before getting here. 541 // All Tests should have read all their GLErrors before getting here.
542 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 542 EXPECT_EQ(GL_NO_ERROR, GetGLError());
543 if (!decoder_->WasContextLost()) { 543 if (!decoder_->WasContextLost()) {
544 EXPECT_CALL(*gl_, DeleteBuffersARB(1, _)).Times(2).RetiresOnSaturation(); 544 EXPECT_CALL(*gl_, DeleteBuffersARB(1, _)).Times(2).RetiresOnSaturation();
545 EXPECT_CALL(*gl_, DeleteFramebuffersEXT(1, _)).Times(AnyNumber());
Chandan 2017/05/18 13:33:36 The no. of DeleteFramebuffers calls possible here
Zhenyao Mo 2017/05/18 17:39:53 If you set it to Times(1).RetiresOnSaturation(), a
Chandan 2017/05/18 18:10:09 Yes, around 24 tests were failing for the reason t
545 if (group_->feature_info()->feature_flags().native_vertex_array_object) { 546 if (group_->feature_info()->feature_flags().native_vertex_array_object) {
546 EXPECT_CALL(*gl_, 547 EXPECT_CALL(*gl_,
547 DeleteVertexArraysOES(1, Pointee(kServiceVertexArrayId))) 548 DeleteVertexArraysOES(1, Pointee(kServiceVertexArrayId)))
548 .Times(1) 549 .Times(1)
549 .RetiresOnSaturation(); 550 .RetiresOnSaturation();
550 } 551 }
551 if (group_->feature_info()->IsWebGL2OrES3Context()) { 552 if (group_->feature_info()->IsWebGL2OrES3Context()) {
552 // fake default transform feedback. 553 // fake default transform feedback.
553 EXPECT_CALL(*gl_, DeleteTransformFeedbacks(1, _)) 554 EXPECT_CALL(*gl_, DeleteTransformFeedbacks(1, _))
554 .Times(1) 555 .Times(1)
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 SetupDefaultProgram(); 2169 SetupDefaultProgram();
2169 } 2170 }
2170 2171
2171 // Include the auto-generated part of this file. We split this because it means 2172 // Include the auto-generated part of this file. We split this because it means
2172 // we can easily edit the non-auto generated parts right here in this file 2173 // we can easily edit the non-auto generated parts right here in this file
2173 // instead of having to edit some template or the code generator. 2174 // instead of having to edit some template or the code generator.
2174 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 2175 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
2175 2176
2176 } // namespace gles2 2177 } // namespace gles2
2177 } // namespace gpu 2178 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698