15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#ifndef GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#define GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)#include <stdint.h>
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include <string.h>
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "gpu/command_buffer/common/mailbox.h"
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "gpu/gpu_export.h"
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace gpu {
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)struct GPU_EXPORT MailboxHolder {
175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  MailboxHolder();
185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  MailboxHolder(const gpu::Mailbox& mailbox,
19010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)                uint32_t texture_target,
20010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)                uint32_t sync_point);
215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  gpu::Mailbox mailbox;
22010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)  uint32_t texture_target;
23010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)  uint32_t sync_point;
245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)};
255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}  // namespace gpu
275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif  // GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_
29