summaryrefslogtreecommitdiffstats
path: root/skia/ext/bitmap_platform_device_linux.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 17:06:53 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 17:06:53 +0000
commit7f1fe3fad451d8809d94b19fca516a2a2134e38c (patch)
tree6954e9cf8f4bd15293f8088b4f1ae51ffd48b5bb /skia/ext/bitmap_platform_device_linux.h
parent44df75248693160a9e677690f0a51e9ba3ce3b32 (diff)
downloadchromium_src-7f1fe3fad451d8809d94b19fca516a2a2134e38c.zip
chromium_src-7f1fe3fad451d8809d94b19fca516a2a2134e38c.tar.gz
chromium_src-7f1fe3fad451d8809d94b19fca516a2a2134e38c.tar.bz2
Keep the cairo clipping region in sync with the Skia one.
The PlatformCanvas now tracks this, so we don't need to have the similar code in gfx::Canvas. I moved most references of cairo_surface_t to cairo_t since the cairo_t has a transform and clip but the surface does not. Review URL: http://codereview.chromium.org/149409 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/bitmap_platform_device_linux.h')
-rw-r--r--skia/ext/bitmap_platform_device_linux.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/skia/ext/bitmap_platform_device_linux.h b/skia/ext/bitmap_platform_device_linux.h
index a40986c..eb6ffa9 100644
--- a/skia/ext/bitmap_platform_device_linux.h
+++ b/skia/ext/bitmap_platform_device_linux.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -85,9 +85,11 @@ class BitmapPlatformDevice : public PlatformDevice {
// If someone wants to paint on a Cairo surface version of our
// buffer, then give them the surface we're already using.
- virtual cairo_surface_t* beginPlatformPaint() { return surface(); }
+ virtual cairo_t* beginPlatformPaint();
- cairo_surface_t* surface() const;
+ // Loads the given transform and clipping region into the HDC. This is
+ // overridden from SkDevice.
+ virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region);
private:
scoped_refptr<BitmapPlatformDeviceData> data_;