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

Unified Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 10349013: Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming HasSurface to IsSurfaceAvailableForCopy Created 8 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
Index: content/browser/renderer_host/render_widget_host_view_gtk.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.cc b/content/browser/renderer_host/render_widget_host_view_gtk.cc
index 15a007381aedb42bfcf0924521bde69bc67accd2..fa0c22a0daf665bd0c45517feccf88290e0c095b 100644
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -734,6 +734,10 @@ bool RenderWidgetHostViewGtk::HasFocus() const {
return gtk_widget_is_focus(view_.get());
}
+bool RenderWidgetHostViewGtk::IsSurfaceAvailableForCopy() const {
+ return !!host_->GetBackingStore(false);
+}
+
void RenderWidgetHostViewGtk::Show() {
gtk_widget_show(view_.get());
}

Powered by Google App Engine
This is Rietveld 408576698