| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 2441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2452 texture_manager()->GetClientId( | 2452 texture_manager()->GetClientId( |
| 2453 unit.bound_texture_cube_map->service_id(), &client_id); | 2453 unit.bound_texture_cube_map->service_id(), &client_id); |
| 2454 *params = client_id; | 2454 *params = client_id; |
| 2455 } else { | 2455 } else { |
| 2456 *params = 0; | 2456 *params = 0; |
| 2457 } | 2457 } |
| 2458 } | 2458 } |
| 2459 return true; | 2459 return true; |
| 2460 default: | 2460 default: |
| 2461 *num_written = util_.GLGetNumValuesReturned(pname); | 2461 *num_written = util_.GLGetNumValuesReturned(pname); |
| 2462 if (params) { | 2462 return false; |
| 2463 glGetIntegerv(pname, params); | |
| 2464 } | |
| 2465 return true; | |
| 2466 } | 2463 } |
| 2467 } | 2464 } |
| 2468 | 2465 |
| 2469 bool GLES2DecoderImpl::GetNumValuesReturnedForGLGet( | 2466 bool GLES2DecoderImpl::GetNumValuesReturnedForGLGet( |
| 2470 GLenum pname, GLsizei* num_values) { | 2467 GLenum pname, GLsizei* num_values) { |
| 2471 return GetHelper(pname, NULL, num_values); | 2468 return GetHelper(pname, NULL, num_values); |
| 2472 } | 2469 } |
| 2473 | 2470 |
| 2474 void GLES2DecoderImpl::DoGetBooleanv(GLenum pname, GLboolean* params) { | 2471 void GLES2DecoderImpl::DoGetBooleanv(GLenum pname, GLboolean* params) { |
| 2475 DCHECK(params); | 2472 DCHECK(params); |
| (...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4996 return error::kNoError; | 4993 return error::kNoError; |
| 4997 } | 4994 } |
| 4998 | 4995 |
| 4999 // Include the auto-generated part of this file. We split this because it means | 4996 // Include the auto-generated part of this file. We split this because it means |
| 5000 // we can easily edit the non-auto generated parts right here in this file | 4997 // we can easily edit the non-auto generated parts right here in this file |
| 5001 // instead of having to edit some template or the code generator. | 4998 // instead of having to edit some template or the code generator. |
| 5002 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 4999 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 5003 | 5000 |
| 5004 } // namespace gles2 | 5001 } // namespace gles2 |
| 5005 } // namespace gpu | 5002 } // namespace gpu |
| OLD | NEW |