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

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

Issue 2127001: Makes shader translation a runtime switch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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) 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 // This file is auto-generated. DO NOT EDIT! 5 // This file is auto-generated. DO NOT EDIT!
6 6
7 // It is included by gles2_cmd_decoder.cc 7 // It is included by gles2_cmd_decoder.cc
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
10 10
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after
2728 return error::kNoError; 2728 return error::kNoError;
2729 } 2729 }
2730 if (!ValidateGLenumGetMaxIndexType(type)) { 2730 if (!ValidateGLenumGetMaxIndexType(type)) {
2731 SetGLError(GL_INVALID_ENUM, "glGetMaxValueInBuffer: type GL_INVALID_ENUM"); 2731 SetGLError(GL_INVALID_ENUM, "glGetMaxValueInBuffer: type GL_INVALID_ENUM");
2732 return error::kNoError; 2732 return error::kNoError;
2733 } 2733 }
2734 *result_dst = DoGetMaxValueInBuffer(buffer_id, count, type, offset); 2734 *result_dst = DoGetMaxValueInBuffer(buffer_id, count, type, offset);
2735 return error::kNoError; 2735 return error::kNoError;
2736 } 2736 }
2737 2737
2738 error::Error GLES2DecoderImpl::HandleCommandBufferEnable(
2739 uint32 immediate_data_size, const gles2::CommandBufferEnable& c) {
2740 GLenum cap = static_cast<GLenum>(c.cap);
2741 GLboolean enable = static_cast<GLboolean>(c.enable);
2742 if (!ValidateGLenumCommandBufferState(cap)) {
2743 SetGLError(GL_INVALID_ENUM, "glCommandBufferEnable: cap GL_INVALID_ENUM");
2744 return error::kNoError;
2745 }
2746 DoCommandBufferEnable(cap, enable);
2747 return error::kNoError;
2748 }
2749
2750 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 2738 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
2751 2739
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698