| 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 99227942ca447c84e57aa4f91fa1ea316e8319d7..8e7cd78caf70eb6f3c943ee28ea9b156d9394227 100644
|
| --- a/gpu/command_buffer/client/cmd_buffer_helper.h
|
| +++ b/gpu/command_buffer/client/cmd_buffer_helper.h
|
| @@ -44,6 +44,10 @@ class GPU_EXPORT CommandBufferHelper {
|
| // buffer.
|
| bool Initialize(int32 ring_buffer_size);
|
|
|
| + // Sets whether the command buffer should automatically flush periodically
|
| + // to try to increase performance. Defaults to true.
|
| + void SetAutomaticFlushes(bool enabled);
|
| +
|
| // True if the context is lost.
|
| bool IsContextLost();
|
|
|
| @@ -292,6 +296,7 @@ class GPU_EXPORT CommandBufferHelper {
|
| int commands_issued_;
|
| bool usable_;
|
| bool context_lost_;
|
| + bool flush_automatically_;
|
|
|
| // Using C runtime instead of base because this file cannot depend on base.
|
| clock_t last_flush_time_;
|
|
|