| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_TASK_RUNNER_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_TASK_RUNNER_H_ |
| 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_TASK_RUNNER_H_ | 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_TASK_RUNNER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> |
| 10 | 11 |
| 11 #include "base/callback.h" | 12 #include "base/callback.h" |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/synchronization/condition_variable.h" | 16 #include "base/synchronization/condition_variable.h" |
| 17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 18 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
| 19 | 19 |
| 20 namespace mus { | 20 namespace mus { |
| 21 | 21 |
| 22 class CommandBufferDriver; | 22 class CommandBufferDriver; |
| 23 | 23 |
| 24 // This class maintains tasks submitted by |CommandBufferImpl|. Those tasks will | 24 // This class maintains tasks submitted by |CommandBufferImpl|. Those tasks will |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // The access lock for |driver_map_| and |need_post_task_|. | 70 // The access lock for |driver_map_| and |need_post_task_|. |
| 71 base::Lock lock_; | 71 base::Lock lock_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(CommandBufferTaskRunner); | 73 DISALLOW_COPY_AND_ASSIGN(CommandBufferTaskRunner); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace mus | 76 } // namespace mus |
| 77 | 77 |
| 78 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_TASK_RUNNER_H_ | 78 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_TASK_RUNNER_H_ |
| OLD | NEW |