Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper.h

Issue 381473004: Use TimeTicks instead of clock() in gpu::CommandBufferHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/cmd_buffer_helper.h
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
index 86d3c3bf6c16d60a3915ce354ca84c7fc45dea98..c7c4c2ebd0df26b8abf521ab37d3c8818c3f7757 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.h
+++ b/gpu/command_buffer/client/cmd_buffer_helper.h
@@ -325,8 +325,9 @@ class GPU_EXPORT CommandBufferHelper {
bool context_lost_;
bool flush_automatically_;
- // Using C runtime instead of base because this file cannot depend on base.
- clock_t last_flush_time_;
+ // 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
+ // cannot depend on base.
+ int64 last_flush_time_;
// Incremented every time the helper flushes the command buffer.
// Can be used to track when prior commands have been flushed.
« no previous file with comments | « no previous file | gpu/command_buffer/client/cmd_buffer_helper.cc » ('j') | gpu/command_buffer/client/cmd_buffer_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698