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

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

Issue 2852923004: Remove NameMap from shader translator and shader/program managers (Closed)
Patch Set: remove some TODO(zmo)s Created 3 years, 7 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/memory_program_cache_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 } 1897 }
1898 1898
1899 DoCreateShader( 1899 DoCreateShader(
1900 GL_VERTEX_SHADER, vertex_shader_client_id, vertex_shader_service_id); 1900 GL_VERTEX_SHADER, vertex_shader_client_id, vertex_shader_service_id);
1901 DoCreateShader( 1901 DoCreateShader(
1902 GL_FRAGMENT_SHADER, fragment_shader_client_id, 1902 GL_FRAGMENT_SHADER, fragment_shader_client_id,
1903 fragment_shader_service_id); 1903 fragment_shader_service_id);
1904 1904
1905 TestHelper::SetShaderStates(gl_.get(), GetShader(vertex_shader_client_id), 1905 TestHelper::SetShaderStates(gl_.get(), GetShader(vertex_shader_client_id),
1906 true, nullptr, nullptr, &shader_language_version_, 1906 true, nullptr, nullptr, &shader_language_version_,
1907 nullptr, nullptr, nullptr, nullptr, nullptr, 1907 nullptr, nullptr, nullptr, nullptr, nullptr);
1908 nullptr);
1909 1908
1910 OutputVariableList frag_output_variable_list; 1909 OutputVariableList frag_output_variable_list;
1911 frag_output_variable_list.push_back(TestHelper::ConstructOutputVariable( 1910 frag_output_variable_list.push_back(TestHelper::ConstructOutputVariable(
1912 program_outputs[0].type, program_outputs[0].size, GL_MEDIUM_FLOAT, true, 1911 program_outputs[0].type, program_outputs[0].size, GL_MEDIUM_FLOAT, true,
1913 program_outputs[0].name)); 1912 program_outputs[0].name));
1914 1913
1915 TestHelper::SetShaderStates(gl_.get(), GetShader(fragment_shader_client_id), 1914 TestHelper::SetShaderStates(gl_.get(), GetShader(fragment_shader_client_id),
1916 true, nullptr, nullptr, &shader_language_version_, 1915 true, nullptr, nullptr, &shader_language_version_,
1917 nullptr, nullptr, nullptr, nullptr, 1916 nullptr, nullptr, nullptr, nullptr,
1918 &frag_output_variable_list, nullptr); 1917 &frag_output_variable_list);
1919 1918
1920 cmds::AttachShader attach_cmd; 1919 cmds::AttachShader attach_cmd;
1921 attach_cmd.Init(program_client_id, vertex_shader_client_id); 1920 attach_cmd.Init(program_client_id, vertex_shader_client_id);
1922 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd)); 1921 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd));
1923 1922
1924 attach_cmd.Init(program_client_id, fragment_shader_client_id); 1923 attach_cmd.Init(program_client_id, fragment_shader_client_id);
1925 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd)); 1924 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd));
1926 1925
1927 if (shader_language_version_ == 300) { 1926 if (shader_language_version_ == 300) {
1928 EXPECT_CALL(*gl_, GetProgramiv( 1927 EXPECT_CALL(*gl_, GetProgramiv(
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 SetupDefaultProgram(); 2186 SetupDefaultProgram();
2188 } 2187 }
2189 2188
2190 // Include the auto-generated part of this file. We split this because it means 2189 // Include the auto-generated part of this file. We split this because it means
2191 // we can easily edit the non-auto generated parts right here in this file 2190 // we can easily edit the non-auto generated parts right here in this file
2192 // instead of having to edit some template or the code generator. 2191 // instead of having to edit some template or the code generator.
2193 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 2192 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
2194 2193
2195 } // namespace gles2 2194 } // namespace gles2
2196 } // namespace gpu 2195 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/memory_program_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698