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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest.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, 2 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 (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.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 cmds_[1].header.size += 1; 1562 cmds_[1].header.size += 1;
1563 int num_processed = -1; 1563 int num_processed = -1;
1564 SetExpectationsForNCommands(1); 1564 SetExpectationsForNCommands(1);
1565 EXPECT_EQ(error::kInvalidArguments, 1565 EXPECT_EQ(error::kInvalidArguments,
1566 decoder_->DoCommands( 1566 decoder_->DoCommands(
1567 2, &cmds_, entries_per_cmd_ * 2 + 1, &num_processed)); 1567 2, &cmds_, entries_per_cmd_ * 2 + 1, &num_processed));
1568 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1568 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1569 EXPECT_EQ(entries_per_cmd_ + cmds_[1].header.size, num_processed); 1569 EXPECT_EQ(entries_per_cmd_ + cmds_[1].header.size, num_processed);
1570 } 1570 }
1571 1571
1572 void GLES3DecoderWithESSL3ShaderTest::SetUp() {
1573 base::CommandLine command_line(0, nullptr);
1574 command_line.AppendSwitch(switches::kEnableUnsafeES3APIs);
1575 InitState init;
1576 init.gl_version = "OpenGL ES 3.0";
1577 init.bind_generates_resource = true;
1578 init.context_type = CONTEXT_TYPE_OPENGLES3;
1579 InitDecoderWithCommandLine(init, &command_line);
1580 SetupDefaultProgram();
1581 }
1582
1572 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest, ::testing::Bool()); 1583 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest, ::testing::Bool());
1573 1584
1574 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool()); 1585 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool());
1575 1586
1576 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool()); 1587 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool());
1577 1588
1578 INSTANTIATE_TEST_CASE_P(Service, 1589 INSTANTIATE_TEST_CASE_P(Service,
1579 GLES2DecoderRGBBackbufferTest, 1590 GLES2DecoderRGBBackbufferTest,
1580 ::testing::Bool()); 1591 ::testing::Bool());
1581 1592
1582 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); 1593 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool());
1583 1594
1584 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); 1595 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool());
1585 1596
1597 INSTANTIATE_TEST_CASE_P(Service,
1598 GLES3DecoderWithESSL3ShaderTest,
1599 ::testing::Bool());
1600
1586 } // namespace gles2 1601 } // namespace gles2
1587 } // namespace gpu 1602 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698