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

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

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 4954 matching lines...) Expand 10 before | Expand all | Expand 10 after
4965 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glDrawBuffersEXT", "count < 0"); 4965 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glDrawBuffersEXT", "count < 0");
4966 return error::kNoError; 4966 return error::kNoError;
4967 } 4967 }
4968 if (bufs == NULL) { 4968 if (bufs == NULL) {
4969 return error::kOutOfBounds; 4969 return error::kOutOfBounds;
4970 } 4970 }
4971 DoDrawBuffersEXT(count, bufs); 4971 DoDrawBuffersEXT(count, bufs);
4972 return error::kNoError; 4972 return error::kNoError;
4973 } 4973 }
4974 4974
4975 error::Error GLES2DecoderImpl::HandleScheduleCALayerInUseQueryCHROMIUMImmediate(
4976 uint32_t immediate_data_size,
4977 const void* cmd_data) {
4978 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate& c =
4979 *static_cast<
4980 const gles2::cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate*>(
4981 cmd_data);
4982 (void)c;
4983 GLsizei count = static_cast<GLsizei>(c.count);
4984 uint32_t data_size = 0;
4985 if (count >= 0 &&
4986 !GLES2Util::ComputeDataSize(count, sizeof(GLuint), 1, &data_size)) {
4987 return error::kOutOfBounds;
4988 }
4989 if (data_size > immediate_data_size) {
4990 return error::kOutOfBounds;
4991 }
4992 const GLuint* textures =
4993 GetImmediateDataAs<const GLuint*>(c, data_size, immediate_data_size);
4994 if (count < 0) {
4995 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glScheduleCALayerInUseQueryCHROMIUM",
4996 "count < 0");
4997 return error::kNoError;
4998 }
4999 if (textures == NULL) {
5000 return error::kOutOfBounds;
5001 }
5002 DoScheduleCALayerInUseQueryCHROMIUM(count, textures);
5003 return error::kNoError;
5004 }
5005
4975 error::Error GLES2DecoderImpl::HandleCommitOverlayPlanesCHROMIUM( 5006 error::Error GLES2DecoderImpl::HandleCommitOverlayPlanesCHROMIUM(
4976 uint32_t immediate_data_size, 5007 uint32_t immediate_data_size,
4977 const void* cmd_data) { 5008 const void* cmd_data) {
4978 const gles2::cmds::CommitOverlayPlanesCHROMIUM& c = 5009 const gles2::cmds::CommitOverlayPlanesCHROMIUM& c =
4979 *static_cast<const gles2::cmds::CommitOverlayPlanesCHROMIUM*>(cmd_data); 5010 *static_cast<const gles2::cmds::CommitOverlayPlanesCHROMIUM*>(cmd_data);
4980 (void)c; 5011 (void)c;
4981 DoCommitOverlayPlanes(); 5012 DoCommitOverlayPlanes();
4982 return error::kNoError; 5013 return error::kNoError;
4983 } 5014 }
4984 5015
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
5285 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5316 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5286 return true; 5317 return true;
5287 } 5318 }
5288 return false; 5319 return false;
5289 default: 5320 default:
5290 NOTREACHED(); 5321 NOTREACHED();
5291 return false; 5322 return false;
5292 } 5323 }
5293 } 5324 }
5294 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5325 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698