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

Unified Diff: content/renderer/render_widget.h

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 653564e0d482d12b95345643ae51aa8a11274afb..0ed4a936b8cf8f106bbf9bd2feb09c3048cac41f 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -109,6 +109,7 @@ class CONTENT_EXPORT RenderWidget
bool has_focus() const { return has_focus_; }
bool is_fullscreen() const { return is_fullscreen_; }
bool is_hidden() const { return is_hidden_; }
+ bool allow_partial_swap() const { return allow_partial_swap_; }
// IPC::Listener
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
@@ -527,6 +528,11 @@ class CONTENT_EXPORT RenderWidget
// Cached on the RenderWidget because determining support is costly.
bool using_asynchronous_swapbuffers_;
+ // Specifies whether partially swapping composited buffers is
+ // allowed for a renderer. Partial swaps will be used if they are both
+ // allowed and supported.
+ bool allow_partial_swap_;
+
// Number of OnSwapBuffersComplete we are expecting. Incremented each time
// WebWidget::composite has been been performed when the RenderWidget subclass
// SupportsAsynchronousSwapBuffers. Decremented in OnSwapBuffers. Will block

Powered by Google App Engine
This is Rietveld 408576698