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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 566019: Implements glGetUniformiv and glGetUniformfv. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | gpu/command_buffer/common/gles2_cmd_format.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) 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 // A class to emluate GLES2 over command buffers. 5 // A class to emluate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 row_source += part_size; 284 row_source += part_size;
285 temp_xoffset += num_pixels; 285 temp_xoffset += num_pixels;
286 temp_width -= num_pixels; 286 temp_width -= num_pixels;
287 } 287 }
288 ++yoffset; 288 ++yoffset;
289 source += padded_row_size; 289 source += padded_row_size;
290 } 290 }
291 } 291 }
292 } 292 }
293 293
294
295 GLenum GLES2Implementation::CheckFramebufferStatus(GLenum target) { 294 GLenum GLES2Implementation::CheckFramebufferStatus(GLenum target) {
296 // TODO(gman): implement. 295 // TODO(gman): implement.
297 return 0; 296 return 0;
298 } 297 }
299 298
300 void GLES2Implementation::GetActiveAttrib( 299 void GLES2Implementation::GetActiveAttrib(
301 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, 300 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
302 GLenum* type, char* name) { 301 GLenum* type, char* name) {
303 // TODO(gman): implement. 302 // TODO(gman): implement.
304 } 303 }
(...skipping 29 matching lines...) Expand all
334 // TODO(gman): implement. 333 // TODO(gman): implement.
335 } 334 }
336 335
337 const GLubyte* GLES2Implementation::GetString(GLenum name) { 336 const GLubyte* GLES2Implementation::GetString(GLenum name) {
338 // TODO(gman): implement. 337 // TODO(gman): implement.
339 return 0; 338 return 0;
340 } 339 }
341 340
342 void GLES2Implementation::GetUniformfv( 341 void GLES2Implementation::GetUniformfv(
343 GLuint program, GLint location, GLfloat* params) { 342 GLuint program, GLint location, GLfloat* params) {
344 // TODO(gman): implement. 343 helper_->GetUniformfv(
344 program, location, result_shm_id(), result_shm_offset());
345 WaitForCmd();
346 CopyResult(params);
345 } 347 }
346 348
347 void GLES2Implementation::GetUniformiv( 349 void GLES2Implementation::GetUniformiv(
348 GLuint program, GLint location, GLint* params) { 350 GLuint program, GLint location, GLint* params) {
349 // TODO(gman): implement. 351 helper_->GetUniformiv(
352 program, location, result_shm_id(), result_shm_offset());
353 WaitForCmd();
354 CopyResult(params);
350 } 355 }
351 356
352 void GLES2Implementation::ReadPixels( 357 void GLES2Implementation::ReadPixels(
353 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, 358 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type,
354 void* pixels) { 359 void* pixels) {
355 // TODO(gman): implement. 360 // TODO(gman): implement.
356 } 361 }
357 362
358 } // namespace gles2 363 } // namespace gles2
359 } // namespace gpu 364 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698