| 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 2598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2609 texture_manager()->GetClientId( | 2609 texture_manager()->GetClientId( |
| 2610 unit.bound_texture_cube_map->service_id(), &client_id); | 2610 unit.bound_texture_cube_map->service_id(), &client_id); |
| 2611 *params = client_id; | 2611 *params = client_id; |
| 2612 } else { | 2612 } else { |
| 2613 *params = 0; | 2613 *params = 0; |
| 2614 } | 2614 } |
| 2615 } | 2615 } |
| 2616 return true; | 2616 return true; |
| 2617 default: | 2617 default: |
| 2618 *num_written = util_.GLGetNumValuesReturned(pname); | 2618 *num_written = util_.GLGetNumValuesReturned(pname); |
| 2619 return false; | 2619 if (params) { |
| 2620 glGetIntegerv(pname, params); |
| 2621 } |
| 2622 return true; |
| 2620 } | 2623 } |
| 2621 } | 2624 } |
| 2622 | 2625 |
| 2623 bool GLES2DecoderImpl::GetNumValuesReturnedForGLGet( | 2626 bool GLES2DecoderImpl::GetNumValuesReturnedForGLGet( |
| 2624 GLenum pname, GLsizei* num_values) { | 2627 GLenum pname, GLsizei* num_values) { |
| 2625 return GetHelper(pname, NULL, num_values); | 2628 return GetHelper(pname, NULL, num_values); |
| 2626 } | 2629 } |
| 2627 | 2630 |
| 2628 void GLES2DecoderImpl::DoGetBooleanv(GLenum pname, GLboolean* params) { | 2631 void GLES2DecoderImpl::DoGetBooleanv(GLenum pname, GLboolean* params) { |
| 2629 DCHECK(params); | 2632 DCHECK(params); |
| (...skipping 2759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5389 return error::kNoError; | 5392 return error::kNoError; |
| 5390 } | 5393 } |
| 5391 | 5394 |
| 5392 // Include the auto-generated part of this file. We split this because it means | 5395 // Include the auto-generated part of this file. We split this because it means |
| 5393 // we can easily edit the non-auto generated parts right here in this file | 5396 // we can easily edit the non-auto generated parts right here in this file |
| 5394 // instead of having to edit some template or the code generator. | 5397 // instead of having to edit some template or the code generator. |
| 5395 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 5398 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 5396 | 5399 |
| 5397 } // namespace gles2 | 5400 } // namespace gles2 |
| 5398 } // namespace gpu | 5401 } // namespace gpu |
| OLD | NEW |