diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 23:07:33 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 23:07:33 +0000 |
commit | cd21403f2ce88b61e04ebcffdf03794c2abd9f94 (patch) | |
tree | 8b5d062321ffd41588639e926bf3b09c21dc8bd7 /skia/ext | |
parent | e6145324931ec430ea217b1fc68697194028c58c (diff) | |
download | chromium_src-cd21403f2ce88b61e04ebcffdf03794c2abd9f94.zip chromium_src-cd21403f2ce88b61e04ebcffdf03794c2abd9f94.tar.gz chromium_src-cd21403f2ce88b61e04ebcffdf03794c2abd9f94.tar.bz2 |
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
Diffstat (limited to 'skia/ext')
-rw-r--r-- | skia/ext/canvas_paint_linux.h | 3 |
1 files changed, 3 insertions, 0 deletions
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_); |