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

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

Issue 1409193007: gpu: Add CHROMIUM_schedule_ca_layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 5 years, 1 month 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 13779 matching lines...) Expand 10 before | Expand all | Expand 10 after
13790 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28"); 13790 "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28");
13791 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, 13791 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32,
13792 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32"); 13792 "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32");
13793 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, 13793 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36,
13794 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); 13794 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36");
13795 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, 13795 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40,
13796 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); 13796 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40");
13797 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, 13797 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44,
13798 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); 13798 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44");
13799 13799
13800 struct ScheduleCALayerCHROMIUM {
13801 typedef ScheduleCALayerCHROMIUM ValueType;
13802 static const CommandId kCmdId = kScheduleCALayerCHROMIUM;
13803 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13804 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13805
13806 static uint32_t ComputeSize() {
13807 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13808 }
13809
13810 void SetHeader() { header.SetCmd<ValueType>(); }
13811
13812 void Init(GLuint _contents_texture_id,
13813 GLfloat _opacity,
13814 GLuint _background_color,
13815 GLuint _shm_id,
13816 GLuint _shm_offset) {
13817 SetHeader();
13818 contents_texture_id = _contents_texture_id;
13819 opacity = _opacity;
13820 background_color = _background_color;
13821 shm_id = _shm_id;
13822 shm_offset = _shm_offset;
13823 }
13824
13825 void* Set(void* cmd,
13826 GLuint _contents_texture_id,
13827 GLfloat _opacity,
13828 GLuint _background_color,
13829 GLuint _shm_id,
13830 GLuint _shm_offset) {
13831 static_cast<ValueType*>(cmd)->Init(_contents_texture_id, _opacity,
13832 _background_color, _shm_id, _shm_offset);
13833 return NextCmdAddress<ValueType>(cmd);
13834 }
13835
13836 gpu::CommandHeader header;
13837 uint32_t contents_texture_id;
13838 float opacity;
13839 uint32_t background_color;
13840 uint32_t shm_id;
13841 uint32_t shm_offset;
13842 };
13843
13844 static_assert(sizeof(ScheduleCALayerCHROMIUM) == 24,
13845 "size of ScheduleCALayerCHROMIUM should be 24");
13846 static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0,
13847 "offset of ScheduleCALayerCHROMIUM header should be 0");
13848 static_assert(
13849 offsetof(ScheduleCALayerCHROMIUM, contents_texture_id) == 4,
13850 "offset of ScheduleCALayerCHROMIUM contents_texture_id should be 4");
13851 static_assert(offsetof(ScheduleCALayerCHROMIUM, opacity) == 8,
13852 "offset of ScheduleCALayerCHROMIUM opacity should be 8");
13853 static_assert(
13854 offsetof(ScheduleCALayerCHROMIUM, background_color) == 12,
13855 "offset of ScheduleCALayerCHROMIUM background_color should be 12");
13856 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 16,
13857 "offset of ScheduleCALayerCHROMIUM shm_id should be 16");
13858 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 20,
13859 "offset of ScheduleCALayerCHROMIUM shm_offset should be 20");
13860
13800 struct SwapInterval { 13861 struct SwapInterval {
13801 typedef SwapInterval ValueType; 13862 typedef SwapInterval ValueType;
13802 static const CommandId kCmdId = kSwapInterval; 13863 static const CommandId kCmdId = kSwapInterval;
13803 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 13864 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13804 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); 13865 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
13805 13866
13806 static uint32_t ComputeSize() { 13867 static uint32_t ComputeSize() {
13807 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 13868 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13808 } 13869 }
13809 13870
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
15318 gpu::CommandHeader header; 15379 gpu::CommandHeader header;
15319 }; 15380 };
15320 15381
15321 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, 15382 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4,
15322 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); 15383 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4");
15323 static_assert( 15384 static_assert(
15324 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, 15385 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0,
15325 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); 15386 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0");
15326 15387
15327 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15388 #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