diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 20:39:38 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 20:39:38 +0000 |
commit | 777f996eab1610f9676ee62ee478cc97687c56cd (patch) | |
tree | 0b5df00b507bf0d0de8ba292541d7b0987f7f3ab /skia/ext/platform_device_linux.h | |
parent | 6e9f27f9b6839b7a07e44a6299bfa48579fe5ba2 (diff) | |
download | chromium_src-777f996eab1610f9676ee62ee478cc97687c56cd.zip chromium_src-777f996eab1610f9676ee62ee478cc97687c56cd.tar.gz chromium_src-777f996eab1610f9676ee62ee478cc97687c56cd.tar.bz2 |
Reverting 20516 by re-landing this previous patch.
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
Review URL: http://codereview.chromium.org/155700
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20992 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. |