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

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

Issue 2743663006: Allow switching DirectCompositionSurfaceWin between drawing modes. (Closed)
Patch Set: rebase 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 15848 matching lines...) Expand 10 before | Expand all | Expand 10 after
15859 "offset of SetDrawRectangleCHROMIUM header should be 0"); 15859 "offset of SetDrawRectangleCHROMIUM header should be 0");
15860 static_assert(offsetof(SetDrawRectangleCHROMIUM, x) == 4, 15860 static_assert(offsetof(SetDrawRectangleCHROMIUM, x) == 4,
15861 "offset of SetDrawRectangleCHROMIUM x should be 4"); 15861 "offset of SetDrawRectangleCHROMIUM x should be 4");
15862 static_assert(offsetof(SetDrawRectangleCHROMIUM, y) == 8, 15862 static_assert(offsetof(SetDrawRectangleCHROMIUM, y) == 8,
15863 "offset of SetDrawRectangleCHROMIUM y should be 8"); 15863 "offset of SetDrawRectangleCHROMIUM y should be 8");
15864 static_assert(offsetof(SetDrawRectangleCHROMIUM, width) == 12, 15864 static_assert(offsetof(SetDrawRectangleCHROMIUM, width) == 12,
15865 "offset of SetDrawRectangleCHROMIUM width should be 12"); 15865 "offset of SetDrawRectangleCHROMIUM width should be 12");
15866 static_assert(offsetof(SetDrawRectangleCHROMIUM, height) == 16, 15866 static_assert(offsetof(SetDrawRectangleCHROMIUM, height) == 16,
15867 "offset of SetDrawRectangleCHROMIUM height should be 16"); 15867 "offset of SetDrawRectangleCHROMIUM height should be 16");
15868 15868
15869 struct SetEnableDCLayersCHROMIUM {
15870 typedef SetEnableDCLayersCHROMIUM ValueType;
15871 static const CommandId kCmdId = kSetEnableDCLayersCHROMIUM;
15872 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15873 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15874
15875 static uint32_t ComputeSize() {
15876 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15877 }
15878
15879 void SetHeader() { header.SetCmd<ValueType>(); }
15880
15881 void Init(GLboolean _enabled) {
15882 SetHeader();
15883 enabled = _enabled;
15884 }
15885
15886 void* Set(void* cmd, GLboolean _enabled) {
15887 static_cast<ValueType*>(cmd)->Init(_enabled);
15888 return NextCmdAddress<ValueType>(cmd);
15889 }
15890
15891 gpu::CommandHeader header;
15892 uint32_t enabled;
15893 };
15894
15895 static_assert(sizeof(SetEnableDCLayersCHROMIUM) == 8,
15896 "size of SetEnableDCLayersCHROMIUM should be 8");
15897 static_assert(offsetof(SetEnableDCLayersCHROMIUM, header) == 0,
15898 "offset of SetEnableDCLayersCHROMIUM header should be 0");
15899 static_assert(offsetof(SetEnableDCLayersCHROMIUM, enabled) == 4,
15900 "offset of SetEnableDCLayersCHROMIUM enabled should be 4");
15901
15869 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15902 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('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