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

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

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase for commit 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 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 init.request_depth = true; 532 init.request_depth = true;
533 init.bind_generates_resource = true; 533 init.bind_generates_resource = true;
534 init.extensions = "GL_EXT_blend_func_extended"; 534 init.extensions = "GL_EXT_blend_func_extended";
535 InitDecoder(init); 535 InitDecoder(init);
536 } 536 }
537 }; 537 };
538 INSTANTIATE_TEST_CASE_P(Service, 538 INSTANTIATE_TEST_CASE_P(Service,
539 GLES2DecoderTestWithBlendFuncExtended, 539 GLES2DecoderTestWithBlendFuncExtended,
540 ::testing::Bool()); 540 ::testing::Bool());
541 541
542 class GLES2DecoderTestWithCHROMIUMFramebufferMixedSamples
543 : public GLES2DecoderTest {
544 public:
545 GLES2DecoderTestWithCHROMIUMFramebufferMixedSamples() {}
546 void SetUp() override {
547 InitState init;
548 init.gl_version = "opengl es 3.1";
549 init.has_alpha = true;
550 init.has_depth = true;
551 init.request_alpha = true;
552 init.request_depth = true;
553 init.bind_generates_resource = true;
554 init.extensions = "GL_NV_path_rendering GL_NV_framebuffer_mixed_samples ";
555 base::CommandLine command_line(0, NULL);
556 command_line.AppendSwitch(switches::kEnableGLPathRendering);
557 InitDecoderWithCommandLine(init, &command_line);
558 }
559 };
560
561 INSTANTIATE_TEST_CASE_P(Service,
562 GLES2DecoderTestWithCHROMIUMFramebufferMixedSamples,
563 ::testing::Bool());
542 564
543 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, GenDeletePaths) { 565 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, GenDeletePaths) {
544 static GLuint kFirstClientID = client_path_id_ + 88; 566 static GLuint kFirstClientID = client_path_id_ + 88;
545 static GLsizei kPathCount = 58; 567 static GLsizei kPathCount = 58;
546 static GLuint kFirstCreatedServiceID = 8000; 568 static GLuint kFirstCreatedServiceID = 8000;
547 569
548 // GenPaths range 0 causes no calls. 570 // GenPaths range 0 causes no calls.
549 cmds::GenPathsCHROMIUM gen_cmd; 571 cmds::GenPathsCHROMIUM gen_cmd;
550 gen_cmd.Init(kFirstClientID, 0); 572 gen_cmd.Init(kFirstClientID, 0);
551 EXPECT_EQ(error::kNoError, ExecuteCmd(gen_cmd)); 573 EXPECT_EQ(error::kNoError, ExecuteCmd(gen_cmd));
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 SetBucketAsCString(kBucketId, kBadName1); 1721 SetBucketAsCString(kBucketId, kBadName1);
1700 cmd.Init(client_program_id_, kLocation, kBucketId); 1722 cmd.Init(client_program_id_, kLocation, kBucketId);
1701 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1723 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1702 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError()); 1724 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError());
1703 } 1725 }
1704 1726
1705 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog en.h" 1727 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog en.h"
1706 1728
1707 } // namespace gles2 1729 } // namespace gles2
1708 } // namespace gpu 1730 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698