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

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

Issue 2736643004: Add DCLayerOverlayProcessor and supporting DCLayer structures. (Closed)
Patch Set: split CALayerOverlay into DCLayerOverlay Created 3 years, 9 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 13796 matching lines...) Expand 10 before | Expand all | Expand 10 after
13807 } 13807 }
13808 13808
13809 gpu::CommandHeader header; 13809 gpu::CommandHeader header;
13810 }; 13810 };
13811 13811
13812 static_assert(sizeof(FlushDriverCachesCHROMIUM) == 4, 13812 static_assert(sizeof(FlushDriverCachesCHROMIUM) == 4,
13813 "size of FlushDriverCachesCHROMIUM should be 4"); 13813 "size of FlushDriverCachesCHROMIUM should be 4");
13814 static_assert(offsetof(FlushDriverCachesCHROMIUM, header) == 0, 13814 static_assert(offsetof(FlushDriverCachesCHROMIUM, header) == 0,
13815 "offset of FlushDriverCachesCHROMIUM header should be 0"); 13815 "offset of FlushDriverCachesCHROMIUM header should be 0");
13816 13816
13817 struct ScheduleDCLayerSharedStateCHROMIUM {
13818 typedef ScheduleDCLayerSharedStateCHROMIUM ValueType;
13819 static const CommandId kCmdId = kScheduleDCLayerSharedStateCHROMIUM;
13820 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13821 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13822
13823 static uint32_t ComputeSize() {
13824 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13825 }
13826
13827 void SetHeader() { header.SetCmd<ValueType>(); }
13828
13829 void Init(GLfloat _opacity,
13830 GLboolean _is_clipped,
13831 GLint _z_order,
13832 GLuint _shm_id,
13833 GLuint _shm_offset) {
13834 SetHeader();
13835 opacity = _opacity;
13836 is_clipped = _is_clipped;
13837 z_order = _z_order;
13838 shm_id = _shm_id;
13839 shm_offset = _shm_offset;
13840 }
13841
13842 void* Set(void* cmd,
13843 GLfloat _opacity,
13844 GLboolean _is_clipped,
13845 GLint _z_order,
13846 GLuint _shm_id,
13847 GLuint _shm_offset) {
13848 static_cast<ValueType*>(cmd)->Init(_opacity, _is_clipped, _z_order, _shm_id,
13849 _shm_offset);
13850 return NextCmdAddress<ValueType>(cmd);
13851 }
13852
13853 gpu::CommandHeader header;
13854 float opacity;
13855 uint32_t is_clipped;
13856 int32_t z_order;
13857 uint32_t shm_id;
13858 uint32_t shm_offset;
13859 };
13860
13861 static_assert(sizeof(ScheduleDCLayerSharedStateCHROMIUM) == 24,
13862 "size of ScheduleDCLayerSharedStateCHROMIUM should be 24");
13863 static_assert(
13864 offsetof(ScheduleDCLayerSharedStateCHROMIUM, header) == 0,
13865 "offset of ScheduleDCLayerSharedStateCHROMIUM header should be 0");
13866 static_assert(
13867 offsetof(ScheduleDCLayerSharedStateCHROMIUM, opacity) == 4,
13868 "offset of ScheduleDCLayerSharedStateCHROMIUM opacity should be 4");
13869 static_assert(
13870 offsetof(ScheduleDCLayerSharedStateCHROMIUM, is_clipped) == 8,
13871 "offset of ScheduleDCLayerSharedStateCHROMIUM is_clipped should be 8");
13872 static_assert(
13873 offsetof(ScheduleDCLayerSharedStateCHROMIUM, z_order) == 12,
13874 "offset of ScheduleDCLayerSharedStateCHROMIUM z_order should be 12");
13875 static_assert(
13876 offsetof(ScheduleDCLayerSharedStateCHROMIUM, shm_id) == 16,
13877 "offset of ScheduleDCLayerSharedStateCHROMIUM shm_id should be 16");
13878 static_assert(
13879 offsetof(ScheduleDCLayerSharedStateCHROMIUM, shm_offset) == 20,
13880 "offset of ScheduleDCLayerSharedStateCHROMIUM shm_offset should be 20");
13881
13882 struct ScheduleDCLayerCHROMIUM {
13883 typedef ScheduleDCLayerCHROMIUM ValueType;
13884 static const CommandId kCmdId = kScheduleDCLayerCHROMIUM;
13885 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13886 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13887
13888 static uint32_t ComputeSize() {
13889 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13890 }
13891
13892 void SetHeader() { header.SetCmd<ValueType>(); }
13893
13894 void Init(GLuint _contents_texture_id,
13895 GLuint _background_color,
13896 GLuint _edge_aa_mask,
13897 GLuint _filter,
13898 GLuint _shm_id,
13899 GLuint _shm_offset) {
13900 SetHeader();
13901 contents_texture_id = _contents_texture_id;
13902 background_color = _background_color;
13903 edge_aa_mask = _edge_aa_mask;
13904 filter = _filter;
13905 shm_id = _shm_id;
13906 shm_offset = _shm_offset;
13907 }
13908
13909 void* Set(void* cmd,
13910 GLuint _contents_texture_id,
13911 GLuint _background_color,
13912 GLuint _edge_aa_mask,
13913 GLuint _filter,
13914 GLuint _shm_id,
13915 GLuint _shm_offset) {
13916 static_cast<ValueType*>(cmd)->Init(_contents_texture_id, _background_color,
13917 _edge_aa_mask, _filter, _shm_id,
13918 _shm_offset);
13919 return NextCmdAddress<ValueType>(cmd);
13920 }
13921
13922 gpu::CommandHeader header;
13923 uint32_t contents_texture_id;
13924 uint32_t background_color;
13925 uint32_t edge_aa_mask;
13926 uint32_t filter;
13927 uint32_t shm_id;
13928 uint32_t shm_offset;
13929 };
13930
13931 static_assert(sizeof(ScheduleDCLayerCHROMIUM) == 28,
13932 "size of ScheduleDCLayerCHROMIUM should be 28");
13933 static_assert(offsetof(ScheduleDCLayerCHROMIUM, header) == 0,
13934 "offset of ScheduleDCLayerCHROMIUM header should be 0");
13935 static_assert(
13936 offsetof(ScheduleDCLayerCHROMIUM, contents_texture_id) == 4,
13937 "offset of ScheduleDCLayerCHROMIUM contents_texture_id should be 4");
13938 static_assert(offsetof(ScheduleDCLayerCHROMIUM, background_color) == 8,
13939 "offset of ScheduleDCLayerCHROMIUM background_color should be 8");
13940 static_assert(offsetof(ScheduleDCLayerCHROMIUM, edge_aa_mask) == 12,
13941 "offset of ScheduleDCLayerCHROMIUM edge_aa_mask should be 12");
13942 static_assert(offsetof(ScheduleDCLayerCHROMIUM, filter) == 16,
13943 "offset of ScheduleDCLayerCHROMIUM filter should be 16");
13944 static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_id) == 20,
13945 "offset of ScheduleDCLayerCHROMIUM shm_id should be 20");
13946 static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_offset) == 24,
13947 "offset of ScheduleDCLayerCHROMIUM shm_offset should be 24");
13948
13817 struct MatrixLoadfCHROMIUMImmediate { 13949 struct MatrixLoadfCHROMIUMImmediate {
13818 typedef MatrixLoadfCHROMIUMImmediate ValueType; 13950 typedef MatrixLoadfCHROMIUMImmediate ValueType;
13819 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate; 13951 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate;
13820 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; 13952 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
13821 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 13953 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13822 13954
13823 static uint32_t ComputeDataSize() { 13955 static uint32_t ComputeDataSize() {
13824 return static_cast<uint32_t>(sizeof(GLfloat) * 16); 13956 return static_cast<uint32_t>(sizeof(GLfloat) * 16);
13825 } 13957 }
13826 13958
(...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after
15728 static_assert(offsetof(SetDrawRectangleCHROMIUM, x) == 4, 15860 static_assert(offsetof(SetDrawRectangleCHROMIUM, x) == 4,
15729 "offset of SetDrawRectangleCHROMIUM x should be 4"); 15861 "offset of SetDrawRectangleCHROMIUM x should be 4");
15730 static_assert(offsetof(SetDrawRectangleCHROMIUM, y) == 8, 15862 static_assert(offsetof(SetDrawRectangleCHROMIUM, y) == 8,
15731 "offset of SetDrawRectangleCHROMIUM y should be 8"); 15863 "offset of SetDrawRectangleCHROMIUM y should be 8");
15732 static_assert(offsetof(SetDrawRectangleCHROMIUM, width) == 12, 15864 static_assert(offsetof(SetDrawRectangleCHROMIUM, width) == 12,
15733 "offset of SetDrawRectangleCHROMIUM width should be 12"); 15865 "offset of SetDrawRectangleCHROMIUM width should be 12");
15734 static_assert(offsetof(SetDrawRectangleCHROMIUM, height) == 16, 15866 static_assert(offsetof(SetDrawRectangleCHROMIUM, height) == 16,
15735 "offset of SetDrawRectangleCHROMIUM height should be 16"); 15867 "offset of SetDrawRectangleCHROMIUM height should be 16");
15736 15868
15737 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15869 #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