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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 16845005: Don't use a sleep in the browser's main thread to throttle swapbuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve against head Created 7 years, 6 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: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 0bc44e2289fb1973379ae2732dec799a79585cf5..e2fd7a920803bd0efc57dfdac2bb73056c36dfd4 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -437,6 +437,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// TODO(jbates) Once the compositor thread is always on, this can be removed.
void AcknowledgeSwapBuffersToRenderer();
+ bool is_threaded_compositing_enabled() const {
+ return is_threaded_compositing_enabled_;
+ }
+
#if defined(USE_AURA)
// Called by the view when the parent changes. If a parent isn't available,
// NULL is used.

Powered by Google App Engine
This is Rietveld 408576698