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

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

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Storing the list of thumbnail callbacks, so that we can issue them upon RWHVA destruction. Created 8 years, 5 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 | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc889535cb002e6c8d819437bfd57094f72e2927..220f7a86387c919a0c41f0637889b6bfa7960281 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -155,6 +155,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// having been hidden.
void WasHidden();
void WasRestored();
+ bool IsHidden() const { return is_hidden_; }
// Returns true if the RenderWidget is hidden.
bool is_hidden() const { return is_hidden_; }
@@ -371,6 +372,17 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// TODO(jbates) Once the compositor thread is always on, this can be removed.
void AcknowledgeSwapBuffersToRenderer();
+#if defined(USE_AURA)
+ // Called by the view in response to visibility changes:
+ // 1. After the front surface is guarenteed to no longer be in use by the ui
+ // (protected false),
+ // 2. When the ui expects to have a valid front surface (protected true).
+ static void SendFrontSurfaceIsProtected(bool is_protected,
+ uint32 protection_state_id,
+ int32 route_id,
+ int gpu_host_id);
+#endif
+
// Signals that the compositing surface was updated, e.g. after a lost context
// event.
void CompositingSurfaceUpdated();
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698