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

Unified Diff: cc/resources/resource_update_controller.h

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 2 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
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_update_controller.h
diff --git a/cc/resources/resource_update_controller.h b/cc/resources/resource_update_controller.h
index 46800e598d77d7d601dc011368e41d52e0215911..4bd5cb8d780378a640180cf196cde8c439d721d6 100644
--- a/cc/resources/resource_update_controller.h
+++ b/cc/resources/resource_update_controller.h
@@ -11,6 +11,7 @@
#include "base/time/time.h"
#include "cc/base/cc_export.h"
#include "cc/resources/resource_update_queue.h"
+#include "ui/gfx/frame_time.h"
namespace base { class SingleThreadTaskRunner; }
@@ -43,12 +44,12 @@ class CC_EXPORT ResourceUpdateController {
// Discard uploads to textures that were evicted on the impl thread.
void DiscardUploadsToEvictedResources();
- void PerformMoreUpdates(base::TimeTicks time_limit);
+ void PerformMoreUpdates(gfx::FrameTime time_limit);
void Finalize();
// Virtual for testing.
- virtual base::TimeTicks Now() const;
+ virtual gfx::FrameTime Now() const;
virtual base::TimeDelta UpdateMoreTexturesTime() const;
virtual size_t UpdateMoreTexturesSize() const;
@@ -75,7 +76,7 @@ class CC_EXPORT ResourceUpdateController {
scoped_ptr<ResourceUpdateQueue> queue_;
bool contents_textures_purged_;
ResourceProvider* resource_provider_;
- base::TimeTicks time_limit_;
+ gfx::FrameTime time_limit_;
size_t texture_updates_per_tick_;
bool first_update_attempt_;
base::SingleThreadTaskRunner* task_runner_;
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698