summaryrefslogtreecommitdiffstats
path: root/skia/ext
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 21:49:25 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 21:49:25 +0000
commitf3c62772c7976c7bafb456f64ab2c9ea04ffeeb7 (patch)
tree881b4b07fac738b624b8fa2c940b140fef4a0eb8 /skia/ext
parent04e836c32bb107053ed5889ab8a297e3bec49b28 (diff)
downloadchromium_src-f3c62772c7976c7bafb456f64ab2c9ea04ffeeb7.zip
chromium_src-f3c62772c7976c7bafb456f64ab2c9ea04ffeeb7.tar.gz
chromium_src-f3c62772c7976c7bafb456f64ab2c9ea04ffeeb7.tar.bz2
test_shell: fix for newer cairos
We need to call cairo_surface_mark_dirty to let Cairo know that we've twiddled the pixels without its knowledge. Without this, on current Cairo versions, test_shell's web widget shows up as a gray box. Review URL: http://codereview.chromium.org/2982002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext')
-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,