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

Side by Side Diff: gpu/command_buffer/service/memory_program_cache_unittest.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
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/memory_program_cache.h" 5 #include "gpu/command_buffer/service/memory_program_cache.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 GL_FLOAT_VEC4, 2, GL_HIGH_FLOAT, true, "c"); 136 GL_FLOAT_VEC4, 2, GL_HIGH_FLOAT, true, "c");
137 fragment_output_variable_list.push_back(TestHelper::ConstructOutputVariable( 137 fragment_output_variable_list.push_back(TestHelper::ConstructOutputVariable(
138 GL_FLOAT, 0, GL_HIGH_FLOAT, true, "d")); 138 GL_FLOAT, 0, GL_HIGH_FLOAT, true, "d"));
139 139
140 vertex_shader_->set_source("bbbalsldkdkdkd"); 140 vertex_shader_->set_source("bbbalsldkdkdkd");
141 fragment_shader_->set_source("bbbal sldkdkdkas 134 ad"); 141 fragment_shader_->set_source("bbbal sldkdkdkas 134 ad");
142 142
143 TestHelper::SetShaderStates(gl_.get(), vertex_shader_, true, nullptr, 143 TestHelper::SetShaderStates(gl_.get(), vertex_shader_, true, nullptr,
144 nullptr, nullptr, &vertex_attrib_map, 144 nullptr, nullptr, &vertex_attrib_map,
145 &vertex_uniform_map, &vertex_varying_map, 145 &vertex_uniform_map, &vertex_varying_map,
146 nullptr, &vertex_output_variable_list, nullptr); 146 nullptr, &vertex_output_variable_list);
147 TestHelper::SetShaderStates( 147 TestHelper::SetShaderStates(gl_.get(), fragment_shader_, true, nullptr,
148 gl_.get(), fragment_shader_, true, nullptr, nullptr, nullptr, 148 nullptr, nullptr, &fragment_attrib_map,
149 &fragment_attrib_map, &fragment_uniform_map, &fragment_varying_map, 149 &fragment_uniform_map, &fragment_varying_map,
150 nullptr, &fragment_output_variable_list, nullptr); 150 nullptr, &fragment_output_variable_list);
151 } 151 }
152 152
153 void SetExpectationsForSaveLinkedProgram( 153 void SetExpectationsForSaveLinkedProgram(
154 const GLint program_id, 154 const GLint program_id,
155 ProgramBinaryEmulator* emulator) const { 155 ProgramBinaryEmulator* emulator) const {
156 EXPECT_CALL(*gl_.get(), 156 EXPECT_CALL(*gl_.get(),
157 GetProgramiv(program_id, GL_PROGRAM_BINARY_LENGTH_OES, _)) 157 GetProgramiv(program_id, GL_PROGRAM_BINARY_LENGTH_OES, _))
158 .WillOnce(SetArgPointee<2>(emulator->length())); 158 .WillOnce(SetArgPointee<2>(emulator->length()));
159 EXPECT_CALL(*gl_.get(), 159 EXPECT_CALL(*gl_.get(),
160 GetProgramBinary(program_id, emulator->length(), _, _, _)) 160 GetProgramBinary(program_id, emulator->length(), _, _, _))
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 fragment_shader_, 724 fragment_shader_,
725 NULL, 725 NULL,
726 varyings_, 726 varyings_,
727 GL_NONE, 727 GL_NONE,
728 base::Bind(&MemoryProgramCacheTest::ShaderCacheCb, 728 base::Bind(&MemoryProgramCacheTest::ShaderCacheCb,
729 base::Unretained(this)))); 729 base::Unretained(this))));
730 } 730 }
731 731
732 } // namespace gles2 732 } // namespace gles2
733 } // namespace gpu 733 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/service/mocks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698