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

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

Issue 3402026: Fix WebGL getParameter bug in command buffer. ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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
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 if (params) { 2619 return false;
2620 glGetIntegerv(pname, params);
2621 }
2622 return true;
2623 } 2620 }
2624 } 2621 }
2625 2622
2626 bool GLES2DecoderImpl::GetNumValuesReturnedForGLGet( 2623 bool GLES2DecoderImpl::GetNumValuesReturnedForGLGet(
2627 GLenum pname, GLsizei* num_values) { 2624 GLenum pname, GLsizei* num_values) {
2628 return GetHelper(pname, NULL, num_values); 2625 return GetHelper(pname, NULL, num_values);
2629 } 2626 }
2630 2627
2631 void GLES2DecoderImpl::DoGetBooleanv(GLenum pname, GLboolean* params) { 2628 void GLES2DecoderImpl::DoGetBooleanv(GLenum pname, GLboolean* params) {
2632 DCHECK(params); 2629 DCHECK(params);
(...skipping 2759 matching lines...) Expand 10 before | Expand all | Expand 10 after
5392 return error::kNoError; 5389 return error::kNoError;
5393 } 5390 }
5394 5391
5395 // Include the auto-generated part of this file. We split this because it means 5392 // Include the auto-generated part of this file. We split this because it means
5396 // we can easily edit the non-auto generated parts right here in this file 5393 // we can easily edit the non-auto generated parts right here in this file
5397 // instead of having to edit some template or the code generator. 5394 // instead of having to edit some template or the code generator.
5398 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 5395 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
5399 5396
5400 } // namespace gles2 5397 } // namespace gles2
5401 } // namespace gpu 5398 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698