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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « gpu/command_buffer/common/gles2_cmd_utils.h ('k') | gpu/command_buffer/common/logging.h » ('j') | 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 // This file is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 10
11 namespace command_buffer { 11 namespace gpu {
12 namespace gles2 { 12 namespace gles2 {
13 13
14 int GLES2Util::GLGetNumValuesReturned(int id) const { 14 int GLES2Util::GLGetNumValuesReturned(int id) const {
15 switch (id) { 15 switch (id) {
16 // -- glGetBooleanv, glGetFloatv, glGetIntergerv 16 // -- glGetBooleanv, glGetFloatv, glGetIntergerv
17 case GL_ACTIVE_TEXTURE: 17 case GL_ACTIVE_TEXTURE:
18 return 1; 18 return 1;
19 case GL_ALIASED_LINE_WIDTH_RANGE: 19 case GL_ALIASED_LINE_WIDTH_RANGE:
20 return 2; 20 return 2;
21 case GL_ALIASED_POINT_SIZE_RANGE: 21 case GL_ALIASED_POINT_SIZE_RANGE:
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 uint32 row_size = width * bytes_per_group; 337 uint32 row_size = width * bytes_per_group;
338 if (height > 1) { 338 if (height > 1) {
339 uint32 padded_row_size = ((row_size + unpack_alignment - 1) / 339 uint32 padded_row_size = ((row_size + unpack_alignment - 1) /
340 unpack_alignment) * unpack_alignment; 340 unpack_alignment) * unpack_alignment;
341 return (height - 1) * padded_row_size + row_size; 341 return (height - 1) * padded_row_size + row_size;
342 } 342 }
343 return height * row_size; 343 return height * row_size;
344 } 344 }
345 345
346 } // namespace gles2 346 } // namespace gles2
347 } // namespace command_buffer 347 } // namespace gpu
348 348
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.h ('k') | gpu/command_buffer/common/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698