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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

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_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 155a2cfb2d7c748a3b11535244f3f6a234c447be..edd0a903ec061bf74b49a9a1bb1da23b044b417b 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -514,6 +514,10 @@ bool RenderWidgetHostViewMac::HasFocus() const {
return [[cocoa_view_ window] firstResponder] == cocoa_view_;
}
+bool RenderWidgetHostViewMac::HasSurface() const {
+ return compositing_iosurface_.get() && compositing_iosurface_->HasIOSurface();
mazda 2012/05/03 20:19:34 Sorry, I omitted the check of the backing store in
+}
+
void RenderWidgetHostViewMac::Show() {
[cocoa_view_ setHidden:NO];

Powered by Google App Engine
This is Rietveld 408576698