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

Unified Diff: chrome/browser/gtk/cairo_cached_surface.cc

Issue 218024: Make Chromium Linux work over VNC again.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/cairo_cached_surface.cc
===================================================================
--- chrome/browser/gtk/cairo_cached_surface.cc (revision 27046)
+++ chrome/browser/gtk/cairo_cached_surface.cc (working copy)
@@ -55,8 +55,12 @@
gdk_pixbuf_get_height(pixbuf_));
DCHECK(surface_);
- DCHECK(cairo_surface_get_type(surface_) == CAIRO_SURFACE_TYPE_XLIB ||
- cairo_surface_get_type(surface_) == CAIRO_SURFACE_TYPE_XCB);
+#if !defined(NDEBUG)
+ int surface_type = cairo_surface_get_type(surface_);
+ DCHECK(surface_type == CAIRO_SURFACE_TYPE_XLIB ||
+ surface_type == CAIRO_SURFACE_TYPE_XCB ||
+ surface_type == CAIRO_SURFACE_TYPE_IMAGE);
+#endif
cairo_t* copy_cr = cairo_create(surface_);
gdk_cairo_set_source_pixbuf(copy_cr, pixbuf_, 0, 0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698