| Index: gpu/command_buffer/client/cmd_buffer_helper.cc
|
| diff --git a/gpu/command_buffer/client/cmd_buffer_helper.cc b/gpu/command_buffer/client/cmd_buffer_helper.cc
|
| index 3eba54fd60801900c7f7f1dcdf12bd0da4e9de93..3dcc318c79b579285f7dbc936ab663847749fe9a 100644
|
| --- a/gpu/command_buffer/client/cmd_buffer_helper.cc
|
| +++ b/gpu/command_buffer/client/cmd_buffer_helper.cc
|
| @@ -22,9 +22,17 @@ CommandBufferHelper::CommandBufferHelper(CommandBuffer* command_buffer)
|
| last_put_sent_(0),
|
| commands_issued_(0),
|
| usable_(true),
|
| + context_lost_(false),
|
| last_flush_time_(0) {
|
| }
|
|
|
| +bool CommandBufferHelper::IsContextLost() {
|
| + if (!context_lost_) {
|
| + context_lost_ = error::IsError(command_buffer()->GetLastError());
|
| + }
|
| + return context_lost_;
|
| +}
|
| +
|
| bool CommandBufferHelper::AllocateRingBuffer() {
|
| if (!usable()) {
|
| return false;
|
|
|