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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 using ::testing::StrictMock; 50 using ::testing::StrictMock;
51 51
52 namespace gpu { 52 namespace gpu {
53 namespace gles2 { 53 namespace gles2 {
54 54
55 using namespace cmds; 55 using namespace cmds;
56 56
57 void GLES2DecoderRGBBackbufferTest::SetUp() { 57 void GLES2DecoderRGBBackbufferTest::SetUp() {
58 // Test codepath with workaround clear_alpha_in_readpixels because 58 // Test codepath with workaround clear_alpha_in_readpixels because
59 // ReadPixelsEmulator emulates the incorrect driver behavior. 59 // ReadPixelsEmulator emulates the incorrect driver behavior.
60 CommandLine command_line(0, NULL); 60 base::CommandLine command_line(0, NULL);
61 command_line.AppendSwitchASCII( 61 command_line.AppendSwitchASCII(
62 switches::kGpuDriverBugWorkarounds, 62 switches::kGpuDriverBugWorkarounds,
63 base::IntToString(gpu::CLEAR_ALPHA_IN_READPIXELS)); 63 base::IntToString(gpu::CLEAR_ALPHA_IN_READPIXELS));
64 InitState init; 64 InitState init;
65 init.gl_version = "3.0"; 65 init.gl_version = "3.0";
66 init.bind_generates_resource = true; 66 init.bind_generates_resource = true;
67 InitDecoderWithCommandLine(init, &command_line); 67 InitDecoderWithCommandLine(init, &command_line);
68 SetupDefaultProgram(); 68 SetupDefaultProgram();
69 } 69 }
70 70
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool()); 1158 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool());
1159 1159
1160 INSTANTIATE_TEST_CASE_P(Service, 1160 INSTANTIATE_TEST_CASE_P(Service,
1161 GLES2DecoderRGBBackbufferTest, 1161 GLES2DecoderRGBBackbufferTest,
1162 ::testing::Bool()); 1162 ::testing::Bool());
1163 1163
1164 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); 1164 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool());
1165 1165
1166 } // namespace gles2 1166 } // namespace gles2
1167 } // namespace gpu 1167 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698