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

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: attempt to fix win build Created 4 years, 2 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 3857 matching lines...) Expand 10 before | Expand all | Expand 10 after
3868 return error::kOutOfBounds; 3868 return error::kOutOfBounds;
3869 } 3869 }
3870 error::Error error = 3870 error::Error error =
3871 DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset, result); 3871 DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset, result);
3872 if (error != error::kNoError) { 3872 if (error != error::kNoError) {
3873 return error; 3873 return error;
3874 } 3874 }
3875 return error::kNoError; 3875 return error::kNoError;
3876 } 3876 }
3877 3877
3878 error::Error GLES2DecoderPassthroughImpl::HandleFlushMappedBufferRange(
3879 uint32_t immediate_data_size,
3880 const volatile void* cmd_data) {
3881 const volatile gles2::cmds::FlushMappedBufferRange& c =
3882 *static_cast<const volatile gles2::cmds::FlushMappedBufferRange*>(
3883 cmd_data);
3884 GLenum target = static_cast<GLenum>(c.target);
3885 GLintptr offset = static_cast<GLintptr>(c.offset);
3886 GLsizeiptr size = static_cast<GLsizeiptr>(c.size);
3887 error::Error error = DoFlushMappedBufferRange(target, offset, size);
3888 if (error != error::kNoError) {
3889 return error;
3890 }
3891 return error::kNoError;
3892 }
3893
3878 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM( 3894 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM(
3879 uint32_t immediate_data_size, 3895 uint32_t immediate_data_size,
3880 const volatile void* cmd_data) { 3896 const volatile void* cmd_data) {
3881 const volatile gles2::cmds::CopyTextureCHROMIUM& c = 3897 const volatile gles2::cmds::CopyTextureCHROMIUM& c =
3882 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); 3898 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data);
3883 GLenum source_id = static_cast<GLenum>(c.source_id); 3899 GLenum source_id = static_cast<GLenum>(c.source_id);
3884 GLenum dest_id = static_cast<GLenum>(c.dest_id); 3900 GLenum dest_id = static_cast<GLenum>(c.dest_id);
3885 GLint internalformat = static_cast<GLint>(c.internalformat); 3901 GLint internalformat = static_cast<GLint>(c.internalformat);
3886 GLenum dest_type = static_cast<GLenum>(c.dest_type); 3902 GLenum dest_type = static_cast<GLenum>(c.dest_type);
3887 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 3903 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
4329 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( 4345 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(
4330 location, transpose, transform); 4346 location, transpose, transform);
4331 if (error != error::kNoError) { 4347 if (error != error::kNoError) {
4332 return error; 4348 return error;
4333 } 4349 }
4334 return error::kNoError; 4350 return error::kNoError;
4335 } 4351 }
4336 4352
4337 } // namespace gles2 4353 } // namespace gles2
4338 } // namespace gpu 4354 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698