diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-20 17:24:23 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-20 17:24:23 +0000 |
commit | c84169bd08705c06d029f62a159911e6d696106b (patch) | |
tree | b69e76edf6a2c81fca41bbab507a8e5e9a7ecb0a /skia/ext/canvas_paint_linux.h | |
parent | 5ae9a87e83b7b7486d9197456a7ad42cb6600d33 (diff) | |
download | chromium_src-c84169bd08705c06d029f62a159911e6d696106b.zip chromium_src-c84169bd08705c06d029f62a159911e6d696106b.tar.gz chromium_src-c84169bd08705c06d029f62a159911e6d696106b.tar.bz2 |
Lands paint logging with the appropriate include this time:
Adds some CHECKs in hopes of figuring out why we're getting crashes
during painting.
BUG=25324
TEST=none
TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/554009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36636 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/canvas_paint_linux.h')
-rw-r--r-- | skia/ext/canvas_paint_linux.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/skia/ext/canvas_paint_linux.h b/skia/ext/canvas_paint_linux.h index 26e8113..af43141 100644 --- a/skia/ext/canvas_paint_linux.h +++ b/skia/ext/canvas_paint_linux.h @@ -6,6 +6,7 @@ #ifndef SKIA_EXT_CANVAS_PAINT_LINUX_H_ #define SKIA_EXT_CANVAS_PAINT_LINUX_H_ +#include "base/logging.h" #include "skia/ext/platform_canvas.h" #include <gdk/gdk.h> @@ -41,10 +42,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_); |