| Index: skia/ext/canvas_paint_linux.h
|
| diff --git a/skia/ext/canvas_paint_linux.h b/skia/ext/canvas_paint_linux.h
|
| index af4314199cf91c112cd7c89da3d564eb9f50ab1f..d2dc77630738db6938f51b42458bc143b40385ba 100644
|
| --- a/skia/ext/canvas_paint_linux.h
|
| +++ b/skia/ext/canvas_paint_linux.h
|
| @@ -49,6 +49,8 @@ class CanvasPaintT : public T {
|
| cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
|
| cairo_surface_t* source_surface = cairo_get_target(context_);
|
| CHECK(source_surface);
|
| + // Flush cairo's cache of the surface.
|
| + cairo_surface_mark_dirty(source_surface);
|
| GdkRectangle bounds = rectangle();
|
| cairo_set_source_surface(cr, source_surface, bounds.x, bounds.y);
|
| gdk_cairo_region(cr, region_);
|
| @@ -83,7 +85,7 @@ class CanvasPaintT : public T {
|
| GdkRectangle bounds = rectangle();
|
| if (!T::initialize(bounds.width, bounds.height, opaque, NULL)) {
|
| // Cause a deliberate crash;
|
| - *(char*) 0 = 0;
|
| + CHECK(false);
|
| }
|
|
|
| // Need to translate so that the dirty region appears at the origin of the
|
|
|