| 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/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 Loading... |
| 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 |
| OLD | NEW |