Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Unified Diff: skia/ext/bitmap_platform_device_linux.cc

Issue 2982002: test_shell: fix for newer cairos (Closed)
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_linux.cc
diff --git a/skia/ext/bitmap_platform_device_linux.cc b/skia/ext/bitmap_platform_device_linux.cc
index f170273fc38ff0479fbabea2363918946732a02d..9b589de3254ffefd8cd1aa3d97d21fd2aa8a67d9 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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698