| OLD | NEW |
| 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/program_manager.h" | 5 #include "gpu/command_buffer/service/program_manager.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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 ExecuteBindAttribLocationCalls(); | 1108 ExecuteBindAttribLocationCalls(); |
| 1109 if (!ExecuteTransformFeedbackVaryingsCall()) { | 1109 if (!ExecuteTransformFeedbackVaryingsCall()) { |
| 1110 return false; | 1110 return false; |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 ExecuteProgramOutputBindCalls(); | 1113 ExecuteProgramOutputBindCalls(); |
| 1114 | 1114 |
| 1115 before_time = TimeTicks::Now(); | 1115 before_time = TimeTicks::Now(); |
| 1116 if (cache && gfx::g_driver_gl.ext.b_GL_ARB_get_program_binary) { | 1116 if (cache && gl::g_driver_gl.ext.b_GL_ARB_get_program_binary) { |
| 1117 glProgramParameteri(service_id(), | 1117 glProgramParameteri(service_id(), |
| 1118 PROGRAM_BINARY_RETRIEVABLE_HINT, | 1118 PROGRAM_BINARY_RETRIEVABLE_HINT, |
| 1119 GL_TRUE); | 1119 GL_TRUE); |
| 1120 } | 1120 } |
| 1121 glLinkProgram(service_id()); | 1121 glLinkProgram(service_id()); |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 GLint success = 0; | 1124 GLint success = 0; |
| 1125 glGetProgramiv(service_id(), GL_LINK_STATUS, &success); | 1125 glGetProgramiv(service_id(), GL_LINK_STATUS, &success); |
| 1126 if (success == GL_TRUE) { | 1126 if (success == GL_TRUE) { |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2366 DCHECK(program); | 2366 DCHECK(program); |
| 2367 program->ClearUniforms(&zero_); | 2367 program->ClearUniforms(&zero_); |
| 2368 } | 2368 } |
| 2369 | 2369 |
| 2370 int32_t ProgramManager::MakeFakeLocation(int32_t index, int32_t element) { | 2370 int32_t ProgramManager::MakeFakeLocation(int32_t index, int32_t element) { |
| 2371 return index + element * 0x10000; | 2371 return index + element * 0x10000; |
| 2372 } | 2372 } |
| 2373 | 2373 |
| 2374 } // namespace gles2 | 2374 } // namespace gles2 |
| 2375 } // namespace gpu | 2375 } // namespace gpu |
| OLD | NEW |