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

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

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 1 month 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
« no previous file with comments | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/common/mailbox_holder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_ 5 #ifndef GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_
6 #define GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_ 6 #define GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 10
11 #include "gpu/command_buffer/common/mailbox.h" 11 #include "gpu/command_buffer/common/mailbox.h"
12 #include "gpu/command_buffer/common/sync_token.h"
12 #include "gpu/gpu_export.h" 13 #include "gpu/gpu_export.h"
13 14
14 namespace gpu { 15 namespace gpu {
15 16
16 // A MailboxHolder is a mechanism by which texture image data produced by one 17 // A MailboxHolder is a mechanism by which texture image data produced by one
17 // context can be consumed by another. The |sync_point| is used to allow one 18 // context can be consumed by another. The |sync_point| is used to allow one
18 // context to wait until another has finished using the texture before it begins 19 // context to wait until another has finished using the texture before it begins
19 // using the texture. When the mailbox is backed by a GPU texture, the 20 // using the texture. When the mailbox is backed by a GPU texture, the
20 // |texture_target| is that texture's type. 21 // |texture_target| is that texture's type.
21 // See here for OpenGL texture types: 22 // See here for OpenGL texture types:
22 // https://www.opengl.org/wiki/Texture#Texture_Objects 23 // https://www.opengl.org/wiki/Texture#Texture_Objects
23 struct GPU_EXPORT MailboxHolder { 24 struct GPU_EXPORT MailboxHolder {
24 MailboxHolder(); 25 MailboxHolder();
25 MailboxHolder(const gpu::Mailbox& mailbox, 26 MailboxHolder(const gpu::Mailbox& mailbox,
26 uint32_t texture_target, 27 const gpu::SyncToken& sync_token,
27 uint32_t sync_point); 28 uint32_t texture_target);
29
28 gpu::Mailbox mailbox; 30 gpu::Mailbox mailbox;
31 gpu::SyncToken sync_token;
29 uint32_t texture_target; 32 uint32_t texture_target;
30 uint32_t sync_point;
31 }; 33 };
32 34
33 } // namespace gpu 35 } // namespace gpu
34 36
35 #endif // GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_ 37 #endif // GPU_COMMAND_BUFFER_MAILBOX_HOLDER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/common/mailbox_holder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698