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

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

Issue 6623063: Connect up --disable-gl-multisampling to command buffer (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix style. Created 9 years, 9 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
« no previous file with comments | « gpu/command_buffer/service/test_helper.h ('k') | gpu/demos/framework/window.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/test_helper.h" 5 #include "gpu/command_buffer/service/test_helper.h"
6 6
7 #include "gpu/command_buffer/common/gl_mock.h" 7 #include "gpu/command_buffer/common/gl_mock.h"
8 #include "gpu/command_buffer/common/types.h" 8 #include "gpu/command_buffer/common/types.h"
9 #include "gpu/GLES2/gles2_command_buffer.h" 9 #include "gpu/GLES2/gles2_command_buffer.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 EXPECT_CALL(*gl, BindTexture(GL_TEXTURE_2D, 0)) 86 EXPECT_CALL(*gl, BindTexture(GL_TEXTURE_2D, 0))
87 .Times(1) 87 .Times(1)
88 .RetiresOnSaturation(); 88 .RetiresOnSaturation();
89 EXPECT_CALL(*gl, BindTexture(GL_TEXTURE_CUBE_MAP, 0)) 89 EXPECT_CALL(*gl, BindTexture(GL_TEXTURE_CUBE_MAP, 0))
90 .Times(1) 90 .Times(1)
91 .RetiresOnSaturation(); 91 .RetiresOnSaturation();
92 } 92 }
93 93
94 void TestHelper::SetupContextGroupInitExpectations( 94 void TestHelper::SetupContextGroupInitExpectations(
95 ::gfx::MockGLInterface* gl, const char* extensions) { 95 ::gfx::MockGLInterface* gl,
96 const DisallowedExtensions& disallowed_extensions,
97 const char* extensions) {
96 InSequence sequence; 98 InSequence sequence;
97 99
98 SetupFeatureInfoInitExpectations(gl, extensions); 100 SetupFeatureInfoInitExpectations(gl, extensions);
99 101
100 EXPECT_CALL(*gl, GetIntegerv(GL_MAX_RENDERBUFFER_SIZE, _)) 102 EXPECT_CALL(*gl, GetIntegerv(GL_MAX_RENDERBUFFER_SIZE, _))
101 .WillOnce(SetArgumentPointee<1>(kMaxRenderbufferSize)) 103 .WillOnce(SetArgumentPointee<1>(kMaxRenderbufferSize))
102 .RetiresOnSaturation(); 104 .RetiresOnSaturation();
103 EXPECT_CALL(*gl, GetIntegerv(GL_MAX_VERTEX_ATTRIBS, _)) 105 EXPECT_CALL(*gl, GetIntegerv(GL_MAX_VERTEX_ATTRIBS, _))
104 .WillOnce(SetArgumentPointee<1>(kNumVertexAttribs)) 106 .WillOnce(SetArgumentPointee<1>(kNumVertexAttribs))
105 .RetiresOnSaturation(); 107 .RetiresOnSaturation();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 InSequence sequence; 139 InSequence sequence;
138 140
139 EXPECT_CALL(*gl, GetString(GL_EXTENSIONS)) 141 EXPECT_CALL(*gl, GetString(GL_EXTENSIONS))
140 .WillOnce(Return(reinterpret_cast<const uint8*>(extensions))) 142 .WillOnce(Return(reinterpret_cast<const uint8*>(extensions)))
141 .RetiresOnSaturation(); 143 .RetiresOnSaturation();
142 } 144 }
143 145
144 } // namespace gles2 146 } // namespace gles2
145 } // namespace gpu 147 } // namespace gpu
146 148
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/test_helper.h ('k') | gpu/demos/framework/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698