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

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: rebase for landing Created 8 years, 7 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 a762e05390ed5d1c117d5b823d26051b7788e997..77f45164a303db0d0f8e05e2c14d65f92c559236 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -906,6 +906,11 @@ bool RenderWidgetHostViewWin::HasFocus() const {
return ::GetFocus() == m_hWnd;
}
+bool RenderWidgetHostViewWin::IsSurfaceAvailableForCopy() const {
+ return !!render_widget_host_->GetBackingStore(false) ||
+ !!accelerated_surface_.get();
+}
+
void RenderWidgetHostViewWin::Show() {
if (!is_fullscreen_) {
DCHECK(parent_hwnd_);
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698