OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string.h> | 10 #include <string.h> |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 int32 last_put_sent_; | 318 int32 last_put_sent_; |
319 | 319 |
320 #if defined(CMD_HELPER_PERIODIC_FLUSH_CHECK) | 320 #if defined(CMD_HELPER_PERIODIC_FLUSH_CHECK) |
321 int commands_issued_; | 321 int commands_issued_; |
322 #endif | 322 #endif |
323 | 323 |
324 bool usable_; | 324 bool usable_; |
325 bool context_lost_; | 325 bool context_lost_; |
326 bool flush_automatically_; | 326 bool flush_automatically_; |
327 | 327 |
328 // Using C runtime instead of base because this file cannot depend on base. | 328 // Using primitive type instead of base::TimeTicks because this file |
hamaji
2014/07/09 06:03:15
Is this comment right? It seems other header files
piman
2014/07/09 20:13:46
This used to be true because of NaCl, but now it s
hamaji
2014/07/10 07:00:16
Good news! Now I removed the comment and changed c
| |
329 clock_t last_flush_time_; | 329 // cannot depend on base. |
330 int64 last_flush_time_; | |
330 | 331 |
331 // Incremented every time the helper flushes the command buffer. | 332 // Incremented every time the helper flushes the command buffer. |
332 // Can be used to track when prior commands have been flushed. | 333 // Can be used to track when prior commands have been flushed. |
333 uint32 flush_generation_; | 334 uint32 flush_generation_; |
334 | 335 |
335 friend class CommandBufferHelperTest; | 336 friend class CommandBufferHelperTest; |
336 DISALLOW_COPY_AND_ASSIGN(CommandBufferHelper); | 337 DISALLOW_COPY_AND_ASSIGN(CommandBufferHelper); |
337 }; | 338 }; |
338 | 339 |
339 } // namespace gpu | 340 } // namespace gpu |
340 | 341 |
341 #endif // GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ | 342 #endif // GPU_COMMAND_BUFFER_CLIENT_CMD_BUFFER_HELPER_H_ |
OLD | NEW |