From cd21403f2ce88b61e04ebcffdf03794c2abd9f94 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Tue, 19 Jan 2010 23:07:33 +0000 Subject: Adds some CHECKs in hopes of figuring out why we're getting crashes during painting. BUG=25324 TEST=none Review URL: http://codereview.chromium.org/543118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36567 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/ext/canvas_paint_linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skia/ext/canvas_paint_linux.h b/skia/ext/canvas_paint_linux.h index 26e8113..f37dfa8 100644 --- a/skia/ext/canvas_paint_linux.h +++ b/skia/ext/canvas_paint_linux.h @@ -41,10 +41,13 @@ class CanvasPaintT : public T { T::restoreToCount(1); // Blit the dirty rect to the window. + CHECK(window_); cairo_t* cr = gdk_cairo_create(window_); + CHECK(cr); if (composite_alpha_) cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); cairo_surface_t* source_surface = cairo_get_target(context_); + CHECK(source_surface); GdkRectangle bounds = rectangle(); cairo_set_source_surface(cr, source_surface, bounds.x, bounds.y); gdk_cairo_region(cr, region_); -- cgit v1.1