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

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

Issue 2559523002: Send overlay promotion hints from to GLStreamTextureImage. (Closed)
Patch Set: fiddled with GLboolean for windows compiler Created 4 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 15535 matching lines...) Expand 10 before | Expand all | Expand 10 after
15546 "header should be 0"); 15546 "header should be 0");
15547 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, 15547 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate,
15548 location) == 4, 15548 location) == 4,
15549 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " 15549 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate "
15550 "location should be 4"); 15550 "location should be 4");
15551 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, 15551 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate,
15552 transpose) == 8, 15552 transpose) == 8,
15553 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " 15553 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate "
15554 "transpose should be 8"); 15554 "transpose should be 8");
15555 15555
15556 struct OverlayPromotionHintCHROMIUM {
15557 typedef OverlayPromotionHintCHROMIUM ValueType;
15558 static const CommandId kCmdId = kOverlayPromotionHintCHROMIUM;
15559 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15560 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15561
15562 static uint32_t ComputeSize() {
15563 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15564 }
15565
15566 void SetHeader() { header.SetCmd<ValueType>(); }
15567
15568 void Init(GLuint _texture,
15569 GLboolean _promotion_hint,
15570 GLint _display_x,
15571 GLint _display_y) {
15572 SetHeader();
15573 texture = _texture;
15574 promotion_hint = _promotion_hint;
15575 display_x = _display_x;
15576 display_y = _display_y;
15577 }
15578
15579 void* Set(void* cmd,
15580 GLuint _texture,
15581 GLboolean _promotion_hint,
15582 GLint _display_x,
15583 GLint _display_y) {
15584 static_cast<ValueType*>(cmd)->Init(_texture, _promotion_hint, _display_x,
15585 _display_y);
15586 return NextCmdAddress<ValueType>(cmd);
15587 }
15588
15589 gpu::CommandHeader header;
15590 uint32_t texture;
15591 uint32_t promotion_hint;
15592 int32_t display_x;
15593 int32_t display_y;
15594 };
15595
15596 static_assert(sizeof(OverlayPromotionHintCHROMIUM) == 20,
15597 "size of OverlayPromotionHintCHROMIUM should be 20");
15598 static_assert(offsetof(OverlayPromotionHintCHROMIUM, header) == 0,
15599 "offset of OverlayPromotionHintCHROMIUM header should be 0");
15600 static_assert(offsetof(OverlayPromotionHintCHROMIUM, texture) == 4,
15601 "offset of OverlayPromotionHintCHROMIUM texture should be 4");
15602 static_assert(
15603 offsetof(OverlayPromotionHintCHROMIUM, promotion_hint) == 8,
15604 "offset of OverlayPromotionHintCHROMIUM promotion_hint should be 8");
15605 static_assert(offsetof(OverlayPromotionHintCHROMIUM, display_x) == 12,
15606 "offset of OverlayPromotionHintCHROMIUM display_x should be 12");
15607 static_assert(offsetof(OverlayPromotionHintCHROMIUM, display_y) == 16,
15608 "offset of OverlayPromotionHintCHROMIUM display_y should be 16");
15609
15556 struct SwapBuffersWithDamageCHROMIUM { 15610 struct SwapBuffersWithDamageCHROMIUM {
15557 typedef SwapBuffersWithDamageCHROMIUM ValueType; 15611 typedef SwapBuffersWithDamageCHROMIUM ValueType;
15558 static const CommandId kCmdId = kSwapBuffersWithDamageCHROMIUM; 15612 static const CommandId kCmdId = kSwapBuffersWithDamageCHROMIUM;
15559 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 15613 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15560 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 15614 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15561 15615
15562 static uint32_t ComputeSize() { 15616 static uint32_t ComputeSize() {
15563 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 15617 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15564 } 15618 }
15565 15619
(...skipping 26 matching lines...) Expand all
15592 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, 15646 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4,
15593 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); 15647 "offset of SwapBuffersWithDamageCHROMIUM x should be 4");
15594 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, 15648 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8,
15595 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); 15649 "offset of SwapBuffersWithDamageCHROMIUM y should be 8");
15596 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, 15650 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12,
15597 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); 15651 "offset of SwapBuffersWithDamageCHROMIUM width should be 12");
15598 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, 15652 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16,
15599 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); 15653 "offset of SwapBuffersWithDamageCHROMIUM height should be 16");
15600 15654
15601 #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