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

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

Issue 14188053: gpu: Change Produce/ConsumeTexture to allow texture sharing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
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 <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 .RetiresOnSaturation(); 168 .RetiresOnSaturation();
169 EXPECT_CALL(*gl_, BindTexture( 169 EXPECT_CALL(*gl_, BindTexture(
170 GL_TEXTURE_2D, TestHelper::kServiceDefaultTexture2dId)) 170 GL_TEXTURE_2D, TestHelper::kServiceDefaultTexture2dId))
171 .Times(1) 171 .Times(1)
172 .RetiresOnSaturation(); 172 .RetiresOnSaturation();
173 } 173 }
174 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) 174 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0))
175 .Times(1) 175 .Times(1)
176 .RetiresOnSaturation(); 176 .RetiresOnSaturation();
177 177
178 EXPECT_CALL(*gl_, BindFramebufferEXT(GL_FRAMEBUFFER, 0))
179 .Times(1)
180 .RetiresOnSaturation();
178 EXPECT_CALL(*gl_, GetIntegerv(GL_ALPHA_BITS, _)) 181 EXPECT_CALL(*gl_, GetIntegerv(GL_ALPHA_BITS, _))
179 .WillOnce(SetArgumentPointee<1>(has_alpha ? 8 : 0)) 182 .WillOnce(SetArgumentPointee<1>(has_alpha ? 8 : 0))
180 .RetiresOnSaturation(); 183 .RetiresOnSaturation();
181 EXPECT_CALL(*gl_, GetIntegerv(GL_DEPTH_BITS, _)) 184 EXPECT_CALL(*gl_, GetIntegerv(GL_DEPTH_BITS, _))
182 .WillOnce(SetArgumentPointee<1>(has_depth ? 24 : 0)) 185 .WillOnce(SetArgumentPointee<1>(has_depth ? 24 : 0))
183 .RetiresOnSaturation(); 186 .RetiresOnSaturation();
184 EXPECT_CALL(*gl_, GetIntegerv(GL_STENCIL_BITS, _)) 187 EXPECT_CALL(*gl_, GetIntegerv(GL_STENCIL_BITS, _))
185 .WillOnce(SetArgumentPointee<1>(has_stencil ? 8 : 0)) 188 .WillOnce(SetArgumentPointee<1>(has_stencil ? 8 : 0))
186 .RetiresOnSaturation(); 189 .RetiresOnSaturation();
187 190
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 SetupDefaultProgram(); 1387 SetupDefaultProgram();
1385 } 1388 }
1386 1389
1387 // Include the auto-generated part of this file. We split this because it means 1390 // Include the auto-generated part of this file. We split this because it means
1388 // we can easily edit the non-auto generated parts right here in this file 1391 // we can easily edit the non-auto generated parts right here in this file
1389 // instead of having to edit some template or the code generator. 1392 // instead of having to edit some template or the code generator.
1390 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 1393 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
1391 1394
1392 } // namespace gles2 1395 } // namespace gles2
1393 } // namespace gpu 1396 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc ('k') | gpu/command_buffer/service/mailbox_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698