Skip to content
Snippets Groups Projects
Commit 9f699108 authored by thestig@chromium.org's avatar thestig@chromium.org
Browse files

Make Chromium Linux work over VNC again.

BUG=none
TEST=Run a debug copy of Chromium over VNC, should not hit the DCHECK.
Review URL: http://codereview.chromium.org/218024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27133 0039d316-1c4b-4281-b951-d872f2087c98
parent c813ecf0
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,12 @@ void CairoCachedSurface::SetSource(cairo_t* cr, int x, int y) { ...@@ -55,8 +55,12 @@ void CairoCachedSurface::SetSource(cairo_t* cr, int x, int y) {
gdk_pixbuf_get_height(pixbuf_)); gdk_pixbuf_get_height(pixbuf_));
DCHECK(surface_); DCHECK(surface_);
DCHECK(cairo_surface_get_type(surface_) == CAIRO_SURFACE_TYPE_XLIB || #if !defined(NDEBUG)
cairo_surface_get_type(surface_) == CAIRO_SURFACE_TYPE_XCB); 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_); cairo_t* copy_cr = cairo_create(surface_);
gdk_cairo_set_source_pixbuf(copy_cr, pixbuf_, 0, 0); gdk_cairo_set_source_pixbuf(copy_cr, pixbuf_, 0, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment