OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/gl/gl_stub_api.h" | 5 #include "ui/gl/gl_stub_api.h" |
6 | 6 |
7 namespace gl { | 7 namespace gl { |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 *params = GL_TRUE; | 187 *params = GL_TRUE; |
188 break; | 188 break; |
189 case GL_VALIDATE_STATUS: | 189 case GL_VALIDATE_STATUS: |
190 *params = GL_TRUE; | 190 *params = GL_TRUE; |
191 break; | 191 break; |
192 default: | 192 default: |
193 break; | 193 break; |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
| 197 void GLStubApi::glGetQueryObjecti64vFn(GLuint id, |
| 198 GLenum pname, |
| 199 GLint64* params) { |
| 200 switch (pname) { |
| 201 case GL_QUERY_RESULT_AVAILABLE: |
| 202 *params = GL_TRUE; |
| 203 break; |
| 204 default: |
| 205 break; |
| 206 } |
| 207 } |
| 208 |
| 209 void GLStubApi::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) { |
| 210 switch (pname) { |
| 211 case GL_QUERY_RESULT_AVAILABLE: |
| 212 *params = GL_TRUE; |
| 213 break; |
| 214 default: |
| 215 break; |
| 216 } |
| 217 } |
| 218 |
| 219 void GLStubApi::glGetQueryObjectui64vFn(GLuint id, |
| 220 GLenum pname, |
| 221 GLuint64* params) { |
| 222 switch (pname) { |
| 223 case GL_QUERY_RESULT_AVAILABLE: |
| 224 *params = GL_TRUE; |
| 225 break; |
| 226 default: |
| 227 break; |
| 228 } |
| 229 } |
| 230 |
| 231 void GLStubApi::glGetQueryObjectuivFn(GLuint id, GLenum pname, GLuint* params) { |
| 232 switch (pname) { |
| 233 case GL_QUERY_RESULT_AVAILABLE: |
| 234 *params = GL_TRUE; |
| 235 break; |
| 236 default: |
| 237 break; |
| 238 } |
| 239 } |
| 240 |
197 void GLStubApi::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) { | 241 void GLStubApi::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) { |
198 switch (pname) { | 242 switch (pname) { |
199 case GL_COMPILE_STATUS: | 243 case GL_COMPILE_STATUS: |
200 *params = GL_TRUE; | 244 *params = GL_TRUE; |
201 break; | 245 break; |
202 default: | 246 default: |
203 break; | 247 break; |
204 } | 248 } |
205 } | 249 } |
206 | 250 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 return GL_TRUE; | 336 return GL_TRUE; |
293 } | 337 } |
294 | 338 |
295 GLenum GLStubApi::glWaitSyncFn(GLsync sync, | 339 GLenum GLStubApi::glWaitSyncFn(GLsync sync, |
296 GLbitfield flags, | 340 GLbitfield flags, |
297 GLuint64 timeout) { | 341 GLuint64 timeout) { |
298 return GL_TRUE; | 342 return GL_TRUE; |
299 } | 343 } |
300 | 344 |
301 } // namespace gl | 345 } // namespace gl |
OLD | NEW |