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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.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_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 6850ebd13809f70a7a33f34ca13f2c8b5e943611..d54236ec7a614bff19ceb1e5648fb965a2a04539 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -329,6 +329,10 @@ bool RenderWidgetHostViewAura::HasFocus() const {
return window_->HasFocus();
}
+bool RenderWidgetHostViewAura::IsSurfaceAvailableForCopy() const {
+ return current_surface_ != 0;
+}
+
void RenderWidgetHostViewAura::Show() {
window_->Show();
}

Powered by Google App Engine
This is Rietveld 408576698