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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 936183002: Add glWaitSync to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sync
Patch Set: rebase Created 5 years, 10 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 9836 matching lines...) Expand 10 before | Expand all | Expand 10 after
9847 static_assert(sizeof(Viewport) == 20, "size of Viewport should be 20"); 9847 static_assert(sizeof(Viewport) == 20, "size of Viewport should be 20");
9848 static_assert(offsetof(Viewport, header) == 0, 9848 static_assert(offsetof(Viewport, header) == 0,
9849 "offset of Viewport header should be 0"); 9849 "offset of Viewport header should be 0");
9850 static_assert(offsetof(Viewport, x) == 4, "offset of Viewport x should be 4"); 9850 static_assert(offsetof(Viewport, x) == 4, "offset of Viewport x should be 4");
9851 static_assert(offsetof(Viewport, y) == 8, "offset of Viewport y should be 8"); 9851 static_assert(offsetof(Viewport, y) == 8, "offset of Viewport y should be 8");
9852 static_assert(offsetof(Viewport, width) == 12, 9852 static_assert(offsetof(Viewport, width) == 12,
9853 "offset of Viewport width should be 12"); 9853 "offset of Viewport width should be 12");
9854 static_assert(offsetof(Viewport, height) == 16, 9854 static_assert(offsetof(Viewport, height) == 16,
9855 "offset of Viewport height should be 16"); 9855 "offset of Viewport height should be 16");
9856 9856
9857 struct WaitSync {
9858 typedef WaitSync ValueType;
9859 static const CommandId kCmdId = kWaitSync;
9860 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9861 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9862
9863 static uint32_t ComputeSize() {
9864 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9865 }
9866
9867 void SetHeader() { header.SetCmd<ValueType>(); }
9868
9869 void Init(GLuint _sync,
9870 GLbitfield _flags,
9871 GLuint _timeout_0,
9872 GLuint _timeout_1) {
9873 SetHeader();
9874 sync = _sync;
9875 flags = _flags;
9876 timeout_0 = _timeout_0;
9877 timeout_1 = _timeout_1;
9878 }
9879
9880 void* Set(void* cmd,
9881 GLuint _sync,
9882 GLbitfield _flags,
9883 GLuint _timeout_0,
9884 GLuint _timeout_1) {
9885 static_cast<ValueType*>(cmd)->Init(_sync, _flags, _timeout_0, _timeout_1);
9886 return NextCmdAddress<ValueType>(cmd);
9887 }
9888
9889 gpu::CommandHeader header;
9890 uint32_t sync;
9891 uint32_t flags;
9892 uint32_t timeout_0;
9893 uint32_t timeout_1;
9894 };
9895
9896 static_assert(sizeof(WaitSync) == 20, "size of WaitSync should be 20");
9897 static_assert(offsetof(WaitSync, header) == 0,
9898 "offset of WaitSync header should be 0");
9899 static_assert(offsetof(WaitSync, sync) == 4,
9900 "offset of WaitSync sync should be 4");
9901 static_assert(offsetof(WaitSync, flags) == 8,
9902 "offset of WaitSync flags should be 8");
9903 static_assert(offsetof(WaitSync, timeout_0) == 12,
9904 "offset of WaitSync timeout_0 should be 12");
9905 static_assert(offsetof(WaitSync, timeout_1) == 16,
9906 "offset of WaitSync timeout_1 should be 16");
9907
9857 struct BlitFramebufferCHROMIUM { 9908 struct BlitFramebufferCHROMIUM {
9858 typedef BlitFramebufferCHROMIUM ValueType; 9909 typedef BlitFramebufferCHROMIUM ValueType;
9859 static const CommandId kCmdId = kBlitFramebufferCHROMIUM; 9910 static const CommandId kCmdId = kBlitFramebufferCHROMIUM;
9860 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 9911 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9861 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); 9912 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
9862 9913
9863 static uint32_t ComputeSize() { 9914 static uint32_t ComputeSize() {
9864 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 9915 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
9865 } 9916 }
9866 9917
(...skipping 2888 matching lines...) Expand 10 before | Expand all | Expand 10 after
12755 12806
12756 gpu::CommandHeader header; 12807 gpu::CommandHeader header;
12757 }; 12808 };
12758 12809
12759 static_assert(sizeof(BlendBarrierKHR) == 4, 12810 static_assert(sizeof(BlendBarrierKHR) == 4,
12760 "size of BlendBarrierKHR should be 4"); 12811 "size of BlendBarrierKHR should be 4");
12761 static_assert(offsetof(BlendBarrierKHR, header) == 0, 12812 static_assert(offsetof(BlendBarrierKHR, header) == 0,
12762 "offset of BlendBarrierKHR header should be 0"); 12813 "offset of BlendBarrierKHR header should be 0");
12763 12814
12764 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 12815 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698