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

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

Issue 1534623002: Mac CoreAnimation: Add more CALayer parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile Created 5 years 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 13854 matching lines...) Expand 10 before | Expand all | Expand 10 after
13865 13865
13866 static uint32_t ComputeSize() { 13866 static uint32_t ComputeSize() {
13867 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 13867 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13868 } 13868 }
13869 13869
13870 void SetHeader() { header.SetCmd<ValueType>(); } 13870 void SetHeader() { header.SetCmd<ValueType>(); }
13871 13871
13872 void Init(GLuint _contents_texture_id, 13872 void Init(GLuint _contents_texture_id,
13873 GLfloat _opacity, 13873 GLfloat _opacity,
13874 GLuint _background_color, 13874 GLuint _background_color,
13875 GLuint _edge_aa_mask,
13876 GLboolean _is_clipped,
13877 GLint _sorting_context_id,
13875 GLuint _shm_id, 13878 GLuint _shm_id,
13876 GLuint _shm_offset) { 13879 GLuint _shm_offset) {
13877 SetHeader(); 13880 SetHeader();
13878 contents_texture_id = _contents_texture_id; 13881 contents_texture_id = _contents_texture_id;
13879 opacity = _opacity; 13882 opacity = _opacity;
13880 background_color = _background_color; 13883 background_color = _background_color;
13884 edge_aa_mask = _edge_aa_mask;
13885 is_clipped = _is_clipped;
13886 sorting_context_id = _sorting_context_id;
13881 shm_id = _shm_id; 13887 shm_id = _shm_id;
13882 shm_offset = _shm_offset; 13888 shm_offset = _shm_offset;
13883 } 13889 }
13884 13890
13885 void* Set(void* cmd, 13891 void* Set(void* cmd,
13886 GLuint _contents_texture_id, 13892 GLuint _contents_texture_id,
13887 GLfloat _opacity, 13893 GLfloat _opacity,
13888 GLuint _background_color, 13894 GLuint _background_color,
13895 GLuint _edge_aa_mask,
13896 GLboolean _is_clipped,
13897 GLint _sorting_context_id,
13889 GLuint _shm_id, 13898 GLuint _shm_id,
13890 GLuint _shm_offset) { 13899 GLuint _shm_offset) {
13891 static_cast<ValueType*>(cmd)->Init(_contents_texture_id, _opacity, 13900 static_cast<ValueType*>(cmd)
13892 _background_color, _shm_id, _shm_offset); 13901 ->Init(_contents_texture_id, _opacity, _background_color, _edge_aa_mask,
13902 _is_clipped, _sorting_context_id, _shm_id, _shm_offset);
13893 return NextCmdAddress<ValueType>(cmd); 13903 return NextCmdAddress<ValueType>(cmd);
13894 } 13904 }
13895 13905
13896 gpu::CommandHeader header; 13906 gpu::CommandHeader header;
13897 uint32_t contents_texture_id; 13907 uint32_t contents_texture_id;
13898 float opacity; 13908 float opacity;
13899 uint32_t background_color; 13909 uint32_t background_color;
13910 uint32_t edge_aa_mask;
13911 uint32_t is_clipped;
13912 int32_t sorting_context_id;
13900 uint32_t shm_id; 13913 uint32_t shm_id;
13901 uint32_t shm_offset; 13914 uint32_t shm_offset;
13902 }; 13915 };
13903 13916
13904 static_assert(sizeof(ScheduleCALayerCHROMIUM) == 24, 13917 static_assert(sizeof(ScheduleCALayerCHROMIUM) == 36,
13905 "size of ScheduleCALayerCHROMIUM should be 24"); 13918 "size of ScheduleCALayerCHROMIUM should be 36");
13906 static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0, 13919 static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0,
13907 "offset of ScheduleCALayerCHROMIUM header should be 0"); 13920 "offset of ScheduleCALayerCHROMIUM header should be 0");
13908 static_assert( 13921 static_assert(
13909 offsetof(ScheduleCALayerCHROMIUM, contents_texture_id) == 4, 13922 offsetof(ScheduleCALayerCHROMIUM, contents_texture_id) == 4,
13910 "offset of ScheduleCALayerCHROMIUM contents_texture_id should be 4"); 13923 "offset of ScheduleCALayerCHROMIUM contents_texture_id should be 4");
13911 static_assert(offsetof(ScheduleCALayerCHROMIUM, opacity) == 8, 13924 static_assert(offsetof(ScheduleCALayerCHROMIUM, opacity) == 8,
13912 "offset of ScheduleCALayerCHROMIUM opacity should be 8"); 13925 "offset of ScheduleCALayerCHROMIUM opacity should be 8");
13913 static_assert( 13926 static_assert(
13914 offsetof(ScheduleCALayerCHROMIUM, background_color) == 12, 13927 offsetof(ScheduleCALayerCHROMIUM, background_color) == 12,
13915 "offset of ScheduleCALayerCHROMIUM background_color should be 12"); 13928 "offset of ScheduleCALayerCHROMIUM background_color should be 12");
13916 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 16, 13929 static_assert(offsetof(ScheduleCALayerCHROMIUM, edge_aa_mask) == 16,
13917 "offset of ScheduleCALayerCHROMIUM shm_id should be 16"); 13930 "offset of ScheduleCALayerCHROMIUM edge_aa_mask should be 16");
13918 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 20, 13931 static_assert(offsetof(ScheduleCALayerCHROMIUM, is_clipped) == 20,
13919 "offset of ScheduleCALayerCHROMIUM shm_offset should be 20"); 13932 "offset of ScheduleCALayerCHROMIUM is_clipped should be 20");
13933 static_assert(
13934 offsetof(ScheduleCALayerCHROMIUM, sorting_context_id) == 24,
13935 "offset of ScheduleCALayerCHROMIUM sorting_context_id should be 24");
13936 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 28,
13937 "offset of ScheduleCALayerCHROMIUM shm_id should be 28");
13938 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 32,
13939 "offset of ScheduleCALayerCHROMIUM shm_offset should be 32");
13920 13940
13921 struct CommitOverlayPlanesCHROMIUM { 13941 struct CommitOverlayPlanesCHROMIUM {
13922 typedef CommitOverlayPlanesCHROMIUM ValueType; 13942 typedef CommitOverlayPlanesCHROMIUM ValueType;
13923 static const CommandId kCmdId = kCommitOverlayPlanesCHROMIUM; 13943 static const CommandId kCmdId = kCommitOverlayPlanesCHROMIUM;
13924 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 13944 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13925 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 13945 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13926 13946
13927 static uint32_t ComputeSize() { 13947 static uint32_t ComputeSize() {
13928 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 13948 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13929 } 13949 }
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
15626 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, 15646 static_assert(offsetof(GetFragDataIndexEXT, program) == 4,
15627 "offset of GetFragDataIndexEXT program should be 4"); 15647 "offset of GetFragDataIndexEXT program should be 4");
15628 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, 15648 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8,
15629 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); 15649 "offset of GetFragDataIndexEXT name_bucket_id should be 8");
15630 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, 15650 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12,
15631 "offset of GetFragDataIndexEXT index_shm_id should be 12"); 15651 "offset of GetFragDataIndexEXT index_shm_id should be 12");
15632 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, 15652 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16,
15633 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); 15653 "offset of GetFragDataIndexEXT index_shm_offset should be 16");
15634 15654
15635 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15655 #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