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

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

Issue 2627323007: Migrate WebGL contexts on backgrounded tabs to the integrated GPU.
Patch Set: Created 3 years, 11 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 15660 matching lines...) Expand 10 before | Expand all | Expand 10 after
15671 "offset of SwapBuffersWithDamageCHROMIUM header should be 0"); 15671 "offset of SwapBuffersWithDamageCHROMIUM header should be 0");
15672 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, 15672 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4,
15673 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); 15673 "offset of SwapBuffersWithDamageCHROMIUM x should be 4");
15674 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, 15674 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8,
15675 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); 15675 "offset of SwapBuffersWithDamageCHROMIUM y should be 8");
15676 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, 15676 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12,
15677 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); 15677 "offset of SwapBuffersWithDamageCHROMIUM width should be 12");
15678 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, 15678 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16,
15679 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); 15679 "offset of SwapBuffersWithDamageCHROMIUM height should be 16");
15680 15680
15681 struct PerformanceHintCHROMIUM {
15682 typedef PerformanceHintCHROMIUM ValueType;
15683 static const CommandId kCmdId = kPerformanceHintCHROMIUM;
15684 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15685 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15686
15687 static uint32_t ComputeSize() {
15688 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15689 }
15690
15691 void SetHeader() { header.SetCmd<ValueType>(); }
15692
15693 void Init(GLenum _mode) {
15694 SetHeader();
15695 mode = _mode;
15696 }
15697
15698 void* Set(void* cmd, GLenum _mode) {
15699 static_cast<ValueType*>(cmd)->Init(_mode);
15700 return NextCmdAddress<ValueType>(cmd);
15701 }
15702
15703 gpu::CommandHeader header;
15704 uint32_t mode;
15705 };
15706
15707 static_assert(sizeof(PerformanceHintCHROMIUM) == 8,
15708 "size of PerformanceHintCHROMIUM should be 8");
15709 static_assert(offsetof(PerformanceHintCHROMIUM, header) == 0,
15710 "offset of PerformanceHintCHROMIUM header should be 0");
15711 static_assert(offsetof(PerformanceHintCHROMIUM, mode) == 4,
15712 "offset of PerformanceHintCHROMIUM mode should be 4");
15713
15681 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15714 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698