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

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

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include gl_image.h Created 4 years, 6 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 4086 matching lines...) Expand 10 before | Expand all | Expand 10 after
4097 } 4097 }
4098 const GLenum* bufs = 4098 const GLenum* bufs =
4099 GetImmediateDataAs<const GLenum*>(c, data_size, immediate_data_size); 4099 GetImmediateDataAs<const GLenum*>(c, data_size, immediate_data_size);
4100 error::Error error = DoDrawBuffersEXT(count, bufs); 4100 error::Error error = DoDrawBuffersEXT(count, bufs);
4101 if (error != error::kNoError) { 4101 if (error != error::kNoError) {
4102 return error; 4102 return error;
4103 } 4103 }
4104 return error::kNoError; 4104 return error::kNoError;
4105 } 4105 }
4106 4106
4107 error::Error
4108 GLES2DecoderPassthroughImpl::HandleScheduleCALayerInUseQueryCHROMIUMImmediate(
4109 uint32_t immediate_data_size,
4110 const void* cmd_data) {
4111 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate& c =
4112 *static_cast<
4113 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate*>(
4114 cmd_data);
4115 (void)c;
4116 GLsizei count = static_cast<GLsizei>(c.count);
4117 uint32_t data_size = 0;
4118 if (count >= 0 &&
4119 !GLES2Util::ComputeDataSize(count, sizeof(GLuint), 1, &data_size)) {
4120 return error::kOutOfBounds;
4121 }
4122 if (data_size > immediate_data_size) {
4123 return error::kOutOfBounds;
4124 }
4125 const GLuint* textures =
4126 GetImmediateDataAs<const GLuint*>(c, data_size, immediate_data_size);
4127 error::Error error = DoScheduleCALayerInUseQueryCHROMIUM(count, textures);
4128 if (error != error::kNoError) {
4129 return error;
4130 }
4131 return error::kNoError;
4132 }
4133
4107 error::Error GLES2DecoderPassthroughImpl::HandleCommitOverlayPlanesCHROMIUM( 4134 error::Error GLES2DecoderPassthroughImpl::HandleCommitOverlayPlanesCHROMIUM(
4108 uint32_t immediate_data_size, 4135 uint32_t immediate_data_size,
4109 const void* cmd_data) { 4136 const void* cmd_data) {
4110 const gles2::cmds::CommitOverlayPlanesCHROMIUM& c = 4137 const gles2::cmds::CommitOverlayPlanesCHROMIUM& c =
4111 *static_cast<const gles2::cmds::CommitOverlayPlanesCHROMIUM*>(cmd_data); 4138 *static_cast<const gles2::cmds::CommitOverlayPlanesCHROMIUM*>(cmd_data);
4112 (void)c; 4139 (void)c;
4113 error::Error error = DoCommitOverlayPlanesCHROMIUM(); 4140 error::Error error = DoCommitOverlayPlanesCHROMIUM();
4114 if (error != error::kNoError) { 4141 if (error != error::kNoError) {
4115 return error; 4142 return error;
4116 } 4143 }
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
4282 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( 4309 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(
4283 location, transpose, default_value); 4310 location, transpose, default_value);
4284 if (error != error::kNoError) { 4311 if (error != error::kNoError) {
4285 return error; 4312 return error;
4286 } 4313 }
4287 return error::kNoError; 4314 return error::kNoError;
4288 } 4315 }
4289 4316
4290 } // namespace gles2 4317 } // namespace gles2
4291 } // namespace gpu 4318 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698