Index: content/common/gpu/gpu_command_buffer_stub.h |
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h |
index 3efa9857a4a3d967ebd889b0847b0191267816d2..651f600a8c867029c11a396e220467367ce9ecc9 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.h |
+++ b/content/common/gpu/gpu_command_buffer_stub.h |
@@ -11,6 +11,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "base/observer_list.h" |
+#include "base/time/time.h" |
#include "content/common/content_export.h" |
#include "content/common/gpu/gpu_memory_manager.h" |
#include "content/common/gpu/gpu_memory_manager_client.h" |
@@ -231,11 +232,10 @@ class GpuCommandBufferStub |
// Poll the command buffer to execute work. |
void PollWork(); |
+ void PerformWork(); |
- // Whether this command buffer needs to be polled again in the future. |
- bool HasMoreWork(); |
- |
- void ScheduleDelayedWork(int64 delay); |
+ // Schedule processing of delayed work. |
+ void ScheduleDelayedWork(base::TimeDelta delay); |
bool CheckContextLost(); |
void CheckCompleteWaits(); |
@@ -284,7 +284,7 @@ class GpuCommandBufferStub |
std::deque<uint32> sync_points_; |
int sync_point_wait_count_; |
- bool delayed_work_scheduled_; |
+ base::TimeTicks process_delayed_work_time_; |
uint64 previous_messages_processed_; |
base::TimeTicks last_idle_time_; |