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

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

Issue 1474513003: Upgrade PixelStorei to ES3/WebGL2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: client side Created 5 years 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 <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims))) 351 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims)))
352 .RetiresOnSaturation(); 352 .RetiresOnSaturation();
353 353
354 static GLfloat line_width_range[] = { 1.0f, 2.0f }; 354 static GLfloat line_width_range[] = { 1.0f, 2.0f };
355 EXPECT_CALL(*gl_, GetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, _)) 355 EXPECT_CALL(*gl_, GetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, _))
356 .WillOnce(SetArrayArgument<1>( 356 .WillOnce(SetArrayArgument<1>(
357 line_width_range, line_width_range + arraysize(line_width_range))) 357 line_width_range, line_width_range + arraysize(line_width_range)))
358 .RetiresOnSaturation(); 358 .RetiresOnSaturation();
359 359
360 SetupInitCapabilitiesExpectations(group_->feature_info()->IsES3Capable()); 360 SetupInitCapabilitiesExpectations(group_->feature_info()->IsES3Capable());
361 SetupInitStateExpectations(); 361 SetupInitStateExpectations(group_->feature_info()->IsES3Capable());
362 362
363 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) 363 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0))
364 .Times(1) 364 .Times(1)
365 .RetiresOnSaturation(); 365 .RetiresOnSaturation();
366 366
367 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) 367 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0))
368 .Times(1) 368 .Times(1)
369 .RetiresOnSaturation(); 369 .RetiresOnSaturation();
370 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)) 370 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0))
371 .Times(1) 371 .Times(1)
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 SetupDefaultProgram(); 1906 SetupDefaultProgram();
1907 } 1907 }
1908 1908
1909 // Include the auto-generated part of this file. We split this because it means 1909 // Include the auto-generated part of this file. We split this because it means
1910 // we can easily edit the non-auto generated parts right here in this file 1910 // we can easily edit the non-auto generated parts right here in this file
1911 // instead of having to edit some template or the code generator. 1911 // instead of having to edit some template or the code generator.
1912 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 1912 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
1913 1913
1914 } // namespace gles2 1914 } // namespace gles2
1915 } // namespace gpu 1915 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698