summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skia/ext/bitmap_platform_device_linux.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/skia/ext/bitmap_platform_device_linux.cc b/skia/ext/bitmap_platform_device_linux.cc
index f170273..9b589de 100644
--- a/skia/ext/bitmap_platform_device_linux.cc
+++ b/skia/ext/bitmap_platform_device_linux.cc
@@ -187,7 +187,11 @@ BitmapPlatformDevice::~BitmapPlatformDevice() {
}
cairo_t* BitmapPlatformDevice::beginPlatformPaint() {
- return data_->GetContext();
+ cairo_t* cairo = data_->GetContext();
+ // Tell Cairo that we've (probably) modified its pixel buffer without
+ // its knowledge.
+ cairo_surface_mark_dirty(cairo_get_target(cairo));
+ return cairo;
}
void BitmapPlatformDevice::setMatrixClip(const SkMatrix& transform,