| Index: gpu/command_buffer/client/cmd_buffer_helper.h
|
| diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
|
| index 825cf9ffbe69702ad0f5394d16b6a9b8c45d9bf0..55f39a50d451d690fa8be44c2817b313d94d5336 100644
|
| --- a/gpu/command_buffer/client/cmd_buffer_helper.h
|
| +++ b/gpu/command_buffer/client/cmd_buffer_helper.h
|
| @@ -92,6 +92,15 @@ class GPU_EXPORT CommandBufferHelper {
|
| // shutdown.
|
| int32 InsertToken();
|
|
|
| + // Returns true if the token has passed.
|
| + // Parameters:
|
| + // the value of the token to check whether it has passed
|
| + bool HasTokenPassed(int32 token) const {
|
| + if (token > token_)
|
| + return true; // we wrapped
|
| + return last_token_read() >= token;
|
| + }
|
| +
|
| // Waits until the token of a particular value has passed through the command
|
| // stream (i.e. commands inserted before that token have been executed).
|
| // NOTE: This will call Flush if it needs to block.
|
|
|