diff options
Diffstat (limited to 'gpu/command_buffer/client/cmd_buffer_helper.h')
-rw-r--r-- | gpu/command_buffer/client/cmd_buffer_helper.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h index c28333a..0f41b9b 100644 --- a/gpu/command_buffer/client/cmd_buffer_helper.h +++ b/gpu/command_buffer/client/cmd_buffer_helper.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -82,6 +82,11 @@ class CommandBufferHelper { // the value of the token to wait for. void WaitForToken(int32 token); + // Inserts a yield command, signaling the scheduler that this is a good point + // to update the state and schedule other command buffers. This is + // particularly useful after inserting a token that will be waited on. + void YieldScheduler(); + // Waits for a certain amount of space to be available. Returns address // of space. CommandBufferEntry* GetSpace(uint32 entries); |