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

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

Issue 1241433003: Rebind EGL context to flush driver caches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 5 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 13690 matching lines...) Expand 10 before | Expand all | Expand 10 after
13701 gpu::CommandHeader header; 13701 gpu::CommandHeader header;
13702 int32_t interval; 13702 int32_t interval;
13703 }; 13703 };
13704 13704
13705 static_assert(sizeof(SwapInterval) == 8, "size of SwapInterval should be 8"); 13705 static_assert(sizeof(SwapInterval) == 8, "size of SwapInterval should be 8");
13706 static_assert(offsetof(SwapInterval, header) == 0, 13706 static_assert(offsetof(SwapInterval, header) == 0,
13707 "offset of SwapInterval header should be 0"); 13707 "offset of SwapInterval header should be 0");
13708 static_assert(offsetof(SwapInterval, interval) == 4, 13708 static_assert(offsetof(SwapInterval, interval) == 4,
13709 "offset of SwapInterval interval should be 4"); 13709 "offset of SwapInterval interval should be 4");
13710 13710
13711 struct FlushDriverCachesCHROMIUM {
13712 typedef FlushDriverCachesCHROMIUM ValueType;
13713 static const CommandId kCmdId = kFlushDriverCachesCHROMIUM;
13714 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13715 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
13716
13717 static uint32_t ComputeSize() {
13718 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13719 }
13720
13721 void SetHeader() { header.SetCmd<ValueType>(); }
13722
13723 void Init() { SetHeader(); }
13724
13725 void* Set(void* cmd) {
13726 static_cast<ValueType*>(cmd)->Init();
13727 return NextCmdAddress<ValueType>(cmd);
13728 }
13729
13730 gpu::CommandHeader header;
13731 };
13732
13733 static_assert(sizeof(FlushDriverCachesCHROMIUM) == 4,
13734 "size of FlushDriverCachesCHROMIUM should be 4");
13735 static_assert(offsetof(FlushDriverCachesCHROMIUM, header) == 0,
13736 "offset of FlushDriverCachesCHROMIUM header should be 0");
13737
13711 struct MatrixLoadfCHROMIUMImmediate { 13738 struct MatrixLoadfCHROMIUMImmediate {
13712 typedef MatrixLoadfCHROMIUMImmediate ValueType; 13739 typedef MatrixLoadfCHROMIUMImmediate ValueType;
13713 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate; 13740 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate;
13714 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; 13741 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
13715 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 13742 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13716 13743
13717 static uint32_t ComputeDataSize() { 13744 static uint32_t ComputeDataSize() {
13718 return static_cast<uint32_t>(sizeof(GLfloat) * 16); 13745 return static_cast<uint32_t>(sizeof(GLfloat) * 16);
13719 } 13746 }
13720 13747
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
14385 14412
14386 gpu::CommandHeader header; 14413 gpu::CommandHeader header;
14387 }; 14414 };
14388 14415
14389 static_assert(sizeof(BlendBarrierKHR) == 4, 14416 static_assert(sizeof(BlendBarrierKHR) == 4,
14390 "size of BlendBarrierKHR should be 4"); 14417 "size of BlendBarrierKHR should be 4");
14391 static_assert(offsetof(BlendBarrierKHR, header) == 0, 14418 static_assert(offsetof(BlendBarrierKHR, header) == 0,
14392 "offset of BlendBarrierKHR header should be 0"); 14419 "offset of BlendBarrierKHR header should be 0");
14393 14420
14394 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 14421 #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