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

Unified Diff: cc/scheduler/vsync_time_source.h

Issue 14898002: Add LayerTreeHostSettings for synchronous compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « no previous file | cc/scheduler/vsync_time_source.cc » ('j') | content/renderer/gpu/render_widget_compositor.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/vsync_time_source.h
diff --git a/cc/scheduler/vsync_time_source.h b/cc/scheduler/vsync_time_source.h
index 910168f26bdc315c9d3b428bd0634d28b1539078..03e32ff68357fc8327c12ac9706d429c76ad004b 100644
--- a/cc/scheduler/vsync_time_source.h
+++ b/cc/scheduler/vsync_time_source.h
@@ -33,7 +33,8 @@ class VSyncProvider {
// external vsync signal.
class CC_EXPORT VSyncTimeSource : public TimeSource, public VSyncClient {
public:
- static scoped_refptr<VSyncTimeSource> Create(VSyncProvider* vsync_provider);
+ static scoped_refptr<VSyncTimeSource> Create(
+ VSyncProvider* vsync_provider, bool lazy_disable);
Sami 2013/05/03 17:02:55 Instead of a bool could you make this into an enum
boliu 2013/05/03 17:20:39 Done.
// TimeSource implementation
virtual void SetClient(TimeSourceClient* client) OVERRIDE;
@@ -48,7 +49,7 @@ class CC_EXPORT VSyncTimeSource : public TimeSource, public VSyncClient {
virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE;
protected:
- explicit VSyncTimeSource(VSyncProvider* vsync_provider);
+ explicit VSyncTimeSource(VSyncProvider* vsync_provider, bool lazy_disable);
virtual ~VSyncTimeSource();
base::TimeTicks last_tick_time_;
@@ -58,6 +59,7 @@ class CC_EXPORT VSyncTimeSource : public TimeSource, public VSyncClient {
VSyncProvider* vsync_provider_;
TimeSourceClient* client_;
+ bool lazy_disable_;
DISALLOW_COPY_AND_ASSIGN(VSyncTimeSource);
};
« no previous file with comments | « no previous file | cc/scheduler/vsync_time_source.cc » ('j') | content/renderer/gpu/render_widget_compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698