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

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

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: address review comments Created 5 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" 8 #include "gpu/command_buffer/common/gles2_cmd_format.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" 10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h"
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 init.bind_generates_resource = true; 510 init.bind_generates_resource = true;
511 init.extensions = "GL_KHR_blend_equation_advanced"; 511 init.extensions = "GL_KHR_blend_equation_advanced";
512 InitDecoder(init); 512 InitDecoder(init);
513 } 513 }
514 }; 514 };
515 515
516 INSTANTIATE_TEST_CASE_P(Service, 516 INSTANTIATE_TEST_CASE_P(Service,
517 GLES2DecoderTestWithBlendEquationAdvanced, 517 GLES2DecoderTestWithBlendEquationAdvanced,
518 ::testing::Bool()); 518 ::testing::Bool());
519 519
520 class GLES2DecoderTestWithBlendFuncExtended : public GLES2DecoderTest {
521 public:
522 GLES2DecoderTestWithBlendFuncExtended() {}
523 void SetUp() override {
524 InitState init;
525 init.gl_version = "opengl es 3.0";
526 init.has_alpha = true;
527 init.has_depth = true;
528 init.request_alpha = true;
529 init.request_depth = true;
530 init.bind_generates_resource = true;
531 init.extensions = "GL_EXT_blend_func_extended";
532 InitDecoder(init);
533 }
534 };
535
520 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, GenDeletePaths) { 536 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, GenDeletePaths) {
521 static GLuint kFirstClientID = client_path_id_ + 88; 537 static GLuint kFirstClientID = client_path_id_ + 88;
522 static GLsizei kPathCount = 58; 538 static GLsizei kPathCount = 58;
523 static GLuint kFirstCreatedServiceID = 8000; 539 static GLuint kFirstCreatedServiceID = 8000;
524 540
525 // GenPaths range 0 causes no calls. 541 // GenPaths range 0 causes no calls.
526 cmds::GenPathsCHROMIUM gen_cmd; 542 cmds::GenPathsCHROMIUM gen_cmd;
527 gen_cmd.Init(kFirstClientID, 0); 543 gen_cmd.Init(kFirstClientID, 0);
528 EXPECT_EQ(error::kNoError, ExecuteCmd(gen_cmd)); 544 EXPECT_EQ(error::kNoError, ExecuteCmd(gen_cmd));
529 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 545 EXPECT_EQ(GL_NO_ERROR, GetGLError());
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 cmd.Init(client_program_id_, kLocation, kBucketId); 1657 cmd.Init(client_program_id_, kLocation, kBucketId);
1642 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1658 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1643 EXPECT_EQ(GL_INVALID_VALUE, GetGLError()); 1659 EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
1644 } 1660 }
1645 1661
1646 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog en.h" 1662 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog en.h"
1647 1663
1648 } // namespace gles2 1664 } // namespace gles2
1649 } // namespace gpu 1665 } // namespace gpu
1650 1666
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698