diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 17:06:53 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 17:06:53 +0000 |
commit | 7f1fe3fad451d8809d94b19fca516a2a2134e38c (patch) | |
tree | 6954e9cf8f4bd15293f8088b4f1ae51ffd48b5bb /skia/ext/platform_device_linux.h | |
parent | 44df75248693160a9e677690f0a51e9ba3ce3b32 (diff) | |
download | chromium_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/platform_device_linux.h')
-rw-r--r-- | skia/ext/platform_device_linux.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/skia/ext/platform_device_linux.h b/skia/ext/platform_device_linux.h index c23a4d8..2a08cc8 100644 --- a/skia/ext/platform_device_linux.h +++ b/skia/ext/platform_device_linux.h @@ -7,19 +7,19 @@ #include "third_party/skia/include/core/SkDevice.h" -typedef struct _cairo_surface cairo_surface_t; +typedef struct _cairo cairo_t; namespace skia { // Blindly copying the mac hierarchy. class PlatformDevice : public SkDevice { public: - typedef cairo_surface_t* PlatformSurface; + typedef cairo_t* PlatformSurface; // Returns if the preferred rendering engine is vectorial or bitmap based. virtual bool IsVectorial() = 0; - virtual cairo_surface_t* beginPlatformPaint() = 0; + virtual PlatformSurface beginPlatformPaint() = 0; protected: // Forwards |bitmap| to SkDevice's constructor. |