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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc

Issue 2221173002: Implementing FlushMappedBufferRange in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: working Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 4006 matching lines...) Expand 10 before | Expand all | Expand 10 after
4017 return error::kOutOfBounds; 4017 return error::kOutOfBounds;
4018 } 4018 }
4019 error::Error error = 4019 error::Error error =
4020 DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset, result); 4020 DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset, result);
4021 if (error != error::kNoError) { 4021 if (error != error::kNoError) {
4022 return error; 4022 return error;
4023 } 4023 }
4024 return error::kNoError; 4024 return error::kNoError;
4025 } 4025 }
4026 4026
4027 error::Error GLES2DecoderPassthroughImpl::HandleFlushMappedBufferRange(
4028 uint32_t immediate_data_size,
4029 const void* cmd_data) {
4030 const gles2::cmds::FlushMappedBufferRange& c =
4031 *static_cast<const gles2::cmds::FlushMappedBufferRange*>(cmd_data);
4032 (void)c;
4033 GLenum target = static_cast<GLenum>(c.target);
4034 GLintptr offset = static_cast<GLintptr>(c.offset);
4035 GLsizeiptr size = static_cast<GLsizeiptr>(c.size);
4036 error::Error error = DoFlushMappedBufferRange(target, offset, size);
4037 if (error != error::kNoError) {
4038 return error;
4039 }
4040 return error::kNoError;
4041 }
4042
4027 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM( 4043 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM(
4028 uint32_t immediate_data_size, 4044 uint32_t immediate_data_size,
4029 const void* cmd_data) { 4045 const void* cmd_data) {
4030 const gles2::cmds::CopyTextureCHROMIUM& c = 4046 const gles2::cmds::CopyTextureCHROMIUM& c =
4031 *static_cast<const gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); 4047 *static_cast<const gles2::cmds::CopyTextureCHROMIUM*>(cmd_data);
4032 (void)c; 4048 (void)c;
4033 GLenum source_id = static_cast<GLenum>(c.source_id); 4049 GLenum source_id = static_cast<GLenum>(c.source_id);
4034 GLenum dest_id = static_cast<GLenum>(c.dest_id); 4050 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4035 GLint internalformat = static_cast<GLint>(c.internalformat); 4051 GLint internalformat = static_cast<GLint>(c.internalformat);
4036 GLenum dest_type = static_cast<GLenum>(c.dest_type); 4052 GLenum dest_type = static_cast<GLenum>(c.dest_type);
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
4478 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( 4494 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(
4479 location, transpose, transform); 4495 location, transpose, transform);
4480 if (error != error::kNoError) { 4496 if (error != error::kNoError) {
4481 return error; 4497 return error;
4482 } 4498 }
4483 return error::kNoError; 4499 return error::kNoError;
4484 } 4500 }
4485 4501
4486 } // namespace gles2 4502 } // namespace gles2
4487 } // namespace gpu 4503 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698