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

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

Issue 2170293002: Use GLVersionInfo instead of gl::GetGLImplementation() to decide GL paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 years, 5 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 | « gpu/command_buffer/service/test_helper.h ('k') | gpu/perftests/texture_upload_perftest.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/test_helper.h" 5 #include "gpu/command_buffer/service/test_helper.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 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 sh::OutputVariable TestHelper::ConstructOutputVariable( 1177 sh::OutputVariable TestHelper::ConstructOutputVariable(
1178 GLenum type, 1178 GLenum type,
1179 GLint array_size, 1179 GLint array_size,
1180 GLenum precision, 1180 GLenum precision,
1181 bool static_use, 1181 bool static_use,
1182 const std::string& name) { 1182 const std::string& name) {
1183 return ConstructShaderVariable<sh::OutputVariable>( 1183 return ConstructShaderVariable<sh::OutputVariable>(
1184 type, array_size, precision, static_use, name); 1184 type, array_size, precision, static_use, name);
1185 } 1185 }
1186 1186
1187 ScopedGLImplementationSetter::ScopedGLImplementationSetter(
1188 gl::GLImplementation implementation)
1189 : old_implementation_(gl::GetGLImplementation()) {
1190 gl::SetGLImplementation(implementation);
1191 }
1192
1193 ScopedGLImplementationSetter::~ScopedGLImplementationSetter() {
1194 gl::SetGLImplementation(old_implementation_);
1195 }
1196
1197 } // namespace gles2 1187 } // namespace gles2
1198 } // namespace gpu 1188 } // namespace gpu
1199 1189
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/test_helper.h ('k') | gpu/perftests/texture_upload_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698