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

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

Issue 14308014: Clean up of GLES2 Command Decoder by moving some of the error state into a separate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge error. Created 7 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
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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 return error::kNoError; 1041 return error::kNoError;
1042 } 1042 }
1043 error::Error GLES2DecoderImpl::HandleGetError( 1043 error::Error GLES2DecoderImpl::HandleGetError(
1044 uint32 immediate_data_size, const gles2::cmds::GetError& c) { 1044 uint32 immediate_data_size, const gles2::cmds::GetError& c) {
1045 typedef cmds::GetError::Result Result; 1045 typedef cmds::GetError::Result Result;
1046 Result* result_dst = GetSharedMemoryAs<Result*>( 1046 Result* result_dst = GetSharedMemoryAs<Result*>(
1047 c.result_shm_id, c.result_shm_offset, sizeof(*result_dst)); 1047 c.result_shm_id, c.result_shm_offset, sizeof(*result_dst));
1048 if (!result_dst) { 1048 if (!result_dst) {
1049 return error::kOutOfBounds; 1049 return error::kOutOfBounds;
1050 } 1050 }
1051 *result_dst = GetGLError(); 1051 *result_dst = GetErrorState()->GetGLError();
1052 return error::kNoError; 1052 return error::kNoError;
1053 } 1053 }
1054 1054
1055 error::Error GLES2DecoderImpl::HandleGetFloatv( 1055 error::Error GLES2DecoderImpl::HandleGetFloatv(
1056 uint32 immediate_data_size, const gles2::cmds::GetFloatv& c) { 1056 uint32 immediate_data_size, const gles2::cmds::GetFloatv& c) {
1057 GLenum pname = static_cast<GLenum>(c.pname); 1057 GLenum pname = static_cast<GLenum>(c.pname);
1058 typedef cmds::GetFloatv::Result Result; 1058 typedef cmds::GetFloatv::Result Result;
1059 GLsizei num_values = 0; 1059 GLsizei num_values = 0;
1060 GetNumValuesReturnedForGLGet(pname, &num_values); 1060 GetNumValuesReturnedForGLGet(pname, &num_values);
1061 Result* result = GetSharedMemoryAs<Result*>( 1061 Result* result = GetSharedMemoryAs<Result*>(
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after
3295 clear_state_dirty_ = true; 3295 clear_state_dirty_ = true;
3296 } 3296 }
3297 return false; 3297 return false;
3298 default: 3298 default:
3299 NOTREACHED(); 3299 NOTREACHED();
3300 return false; 3300 return false;
3301 } 3301 }
3302 } 3302 }
3303 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 3303 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
3304 3304
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698