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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager_unittest.cc ('k') | gpu/command_buffer/service/program_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698