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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.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: Providing implementations for the other platforms 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_win.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index fcfeac8668a7e1e134a9dd0c43aa1c674a2b7eff..43b5e4ca76f8a3fa45259bad69fcf924d0798302 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -663,6 +663,10 @@ bool RenderWidgetHostViewWin::HasFocus() const {
return ::GetFocus() == m_hWnd;
}
+bool RenderWidgetHostViewWin::HasSurface() const {
+ return !!accelerated_surface_.get();
mazda 2012/05/03 20:19:34 Same here. return !!render_widget_host_->GetBacki
+}
+
void RenderWidgetHostViewWin::Show() {
if (!is_fullscreen_) {
DCHECK(parent_hwnd_);

Powered by Google App Engine
This is Rietveld 408576698