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

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

Issue 235563002: gpu: Separate GpuControlService from GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove MailboxManager Created 6 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 | 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 init.gl_version.c_str(), 139 init.gl_version.c_str(),
140 init.bind_generates_resource); 140 init.bind_generates_resource);
141 141
142 // We initialize the ContextGroup with a MockGLES2Decoder so that 142 // We initialize the ContextGroup with a MockGLES2Decoder so that
143 // we can use the ContextGroup to figure out how the real GLES2Decoder 143 // we can use the ContextGroup to figure out how the real GLES2Decoder
144 // will initialize itself. 144 // will initialize itself.
145 mock_decoder_.reset(new MockGLES2Decoder()); 145 mock_decoder_.reset(new MockGLES2Decoder());
146 EXPECT_TRUE( 146 EXPECT_TRUE(
147 group_->Initialize(mock_decoder_.get(), DisallowedFeatures())); 147 group_->Initialize(mock_decoder_.get(), DisallowedFeatures()));
148 148
149 if (group_->feature_info()->feature_flags().native_vertex_array_object) {
150 EXPECT_CALL(*gl_, GenVertexArraysOES(1, _)).Times(1).RetiresOnSaturation();
151 EXPECT_CALL(*gl_, BindVertexArrayOES(_)).Times(1).RetiresOnSaturation();
152 }
153
154 if (group_->feature_info()->workarounds().init_vertex_attributes) 149 if (group_->feature_info()->workarounds().init_vertex_attributes)
155 AddExpectationsForVertexAttribManager(); 150 AddExpectationsForVertexAttribManager();
156 151
157 AddExpectationsForBindVertexArrayOES(); 152 AddExpectationsForBindVertexArrayOES();
158 153
159 EXPECT_CALL(*gl_, EnableVertexAttribArray(0)) 154 EXPECT_CALL(*gl_, EnableVertexAttribArray(0))
160 .Times(1) 155 .Times(1)
161 .RetiresOnSaturation(); 156 .RetiresOnSaturation();
162 static GLuint attrib_0_id[] = { 157 static GLuint attrib_0_id[] = {
163 kServiceAttrib0BufferId, 158 kServiceAttrib0BufferId,
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 SetupDefaultProgram(); 1472 SetupDefaultProgram();
1478 } 1473 }
1479 1474
1480 // Include the auto-generated part of this file. We split this because it means 1475 // Include the auto-generated part of this file. We split this because it means
1481 // we can easily edit the non-auto generated parts right here in this file 1476 // we can easily edit the non-auto generated parts right here in this file
1482 // instead of having to edit some template or the code generator. 1477 // instead of having to edit some template or the code generator.
1483 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 1478 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
1484 1479
1485 } // namespace gles2 1480 } // namespace gles2
1486 } // namespace gpu 1481 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698