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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 10124016: Addition of GL_CHROMIUM_copy_texture extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Removing dangling error checking code. Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // It is included by gles2_cmd_decoder.cc 9 // It is included by gles2_cmd_decoder.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
(...skipping 2491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 GLsizei width = static_cast<GLsizei>(c.width); 2502 GLsizei width = static_cast<GLsizei>(c.width);
2503 GLsizei height = static_cast<GLsizei>(c.height); 2503 GLsizei height = static_cast<GLsizei>(c.height);
2504 if (width < 0) { 2504 if (width < 0) {
2505 SetGLError(GL_INVALID_VALUE, "glViewport: width < 0"); 2505 SetGLError(GL_INVALID_VALUE, "glViewport: width < 0");
2506 return error::kNoError; 2506 return error::kNoError;
2507 } 2507 }
2508 if (height < 0) { 2508 if (height < 0) {
2509 SetGLError(GL_INVALID_VALUE, "glViewport: height < 0"); 2509 SetGLError(GL_INVALID_VALUE, "glViewport: height < 0");
2510 return error::kNoError; 2510 return error::kNoError;
2511 } 2511 }
2512 glViewport(x, y, width, height); 2512 DoViewport(x, y, width, height);
2513 return error::kNoError; 2513 return error::kNoError;
2514 } 2514 }
2515 2515
2516 error::Error GLES2DecoderImpl::HandleBlitFramebufferEXT( 2516 error::Error GLES2DecoderImpl::HandleBlitFramebufferEXT(
2517 uint32 immediate_data_size, const gles2::BlitFramebufferEXT& c) { 2517 uint32 immediate_data_size, const gles2::BlitFramebufferEXT& c) {
2518 GLint srcX0 = static_cast<GLint>(c.srcX0); 2518 GLint srcX0 = static_cast<GLint>(c.srcX0);
2519 GLint srcY0 = static_cast<GLint>(c.srcY0); 2519 GLint srcY0 = static_cast<GLint>(c.srcY0);
2520 GLint srcX1 = static_cast<GLint>(c.srcX1); 2520 GLint srcX1 = static_cast<GLint>(c.srcX1);
2521 GLint srcY1 = static_cast<GLint>(c.srcY1); 2521 GLint srcY1 = static_cast<GLint>(c.srcY1);
2522 GLint dstX0 = static_cast<GLint>(c.dstX0); 2522 GLint dstX0 = static_cast<GLint>(c.dstX0);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 return error::kNoError; 2719 return error::kNoError;
2720 } 2720 }
2721 if (height < 0) { 2721 if (height < 0) {
2722 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0"); 2722 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0");
2723 return error::kNoError; 2723 return error::kNoError;
2724 } 2724 }
2725 DoTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); 2725 DoTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane);
2726 return error::kNoError; 2726 return error::kNoError;
2727 } 2727 }
2728 2728
2729 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM(
2730 uint32 immediate_data_size, const gles2::CopyTextureCHROMIUM& c) {
2731 GLenum target = static_cast<GLenum>(c.target);
2732 GLenum source_id = static_cast<GLenum>(c.source_id);
2733 GLenum dest_id = static_cast<GLenum>(c.dest_id);
2734 GLint level = static_cast<GLint>(c.level);
2735 DoCopyTextureCHROMIUM(target, source_id, dest_id, level);
2736 return error::kNoError;
2737 }
2738
2729 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 2739 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
2730 2740
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698