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

Unified Diff: cc/scheduler/scheduler_settings.h

Issue 1531403002: Revert "Delete CC." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_settings.h
diff --git a/cc/scheduler/scheduler_settings.h b/cc/scheduler/scheduler_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..12a65515daa65b48ecb050f10a31eaf29a1a6d76
--- /dev/null
+++ b/cc/scheduler/scheduler_settings.h
@@ -0,0 +1,46 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_SCHEDULER_SCHEDULER_SETTINGS_H_
+#define CC_SCHEDULER_SCHEDULER_SETTINGS_H_
+
+#include "base/memory/ref_counted.h"
+#include "base/time/time.h"
+#include "base/values.h"
+
+namespace base {
+namespace trace_event {
+class ConvertableToTraceFormat;
+}
+}
+
+namespace cc {
+
+class SchedulerSettings {
+ public:
+ SchedulerSettings();
+ ~SchedulerSettings();
+
+ bool use_external_begin_frame_source;
+ bool main_frame_before_activation_enabled;
+ bool impl_side_painting;
+ bool timeout_and_draw_when_animation_checkerboards;
+ int maximum_number_of_failed_draws_before_draw_is_forced_;
+ bool using_synchronous_renderer_compositor;
+ bool throttle_frame_production;
+
+ // In main thread low latency mode the entire
+ // BeginMainFrame->Commit->Activation->Draw cycle should complete before
+ // starting the next cycle. Additionally, BeginMainFrame and Commit are
+ // completed atomically with no other tasks or actions occuring between them.
+ bool main_thread_should_always_be_low_latency;
+
+ base::TimeDelta background_frame_interval;
+
+ scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
+};
+
+} // namespace cc
+
+#endif // CC_SCHEDULER_SCHEDULER_SETTINGS_H_
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698