| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This file contains the command buffer helper class. | 5 // This file contains the command buffer helper class. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ |
| 8 #define GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ | 8 #define GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ |
| 9 | 9 |
| 10 #include "gpu/command_buffer/common/logging.h" | 10 #include "base/logging.h" |
| 11 #include "gpu/command_buffer/common/constants.h" | 11 #include "gpu/command_buffer/common/constants.h" |
| 12 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 12 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
| 13 #include "gpu/command_buffer/common/command_buffer.h" | 13 #include "gpu/command_buffer/common/command_buffer.h" |
| 14 | 14 |
| 15 namespace gpu { | 15 namespace gpu { |
| 16 | 16 |
| 17 // Command buffer helper class. This class simplifies ring buffer management: | 17 // Command buffer helper class. This class simplifies ring buffer management: |
| 18 // it will allocate the buffer, give it to the buffer interface, and let the | 18 // it will allocate the buffer, give it to the buffer interface, and let the |
| 19 // user add commands to it, while taking care of the synchronization (put and | 19 // user add commands to it, while taking care of the synchronization (put and |
| 20 // get). It also provides a way to ensure commands have been executed, through | 20 // get). It also provides a way to ensure commands have been executed, through |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 int32 get_; | 179 int32 get_; |
| 180 int32 put_; | 180 int32 put_; |
| 181 | 181 |
| 182 friend class CommandBufferHelperTest; | 182 friend class CommandBufferHelperTest; |
| 183 DISALLOW_COPY_AND_ASSIGN(CommandBufferHelper); | 183 DISALLOW_COPY_AND_ASSIGN(CommandBufferHelper); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 } // namespace gpu | 186 } // namespace gpu |
| 187 | 187 |
| 188 #endif // GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ | 188 #endif // GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ |
| OLD | NEW |