summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_canvas.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-05 17:17:08 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-05 17:17:08 +0000
commit49d198eaf7bd7b118fb46b97cc790fdc7b380eee (patch)
treefb0012720373f1e286e06f8cd0595d44c3452d30 /skia/ext/platform_canvas.h
parent83da5db25bfd45670eca38f0eb9d6a780090447b (diff)
downloadchromium_src-49d198eaf7bd7b118fb46b97cc790fdc7b380eee.zip
chromium_src-49d198eaf7bd7b118fb46b97cc790fdc7b380eee.tar.gz
chromium_src-49d198eaf7bd7b118fb46b97cc790fdc7b380eee.tar.bz2
rename getBitmapDC to beginPlatformPaint and add calls to endPlatformPaint
This takes a step toward unifying the platform device interface between Windows and Linux and helps to make VectorPlatformDeviceSkia have less ifdefs. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6677142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/platform_canvas.h')
-rw-r--r--skia/ext/platform_canvas.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index 49d0e21..528fd1a 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -69,8 +69,8 @@ class SK_API PlatformCanvas : public SkCanvas {
// Call endPlatformPaint when you are done and want to use Skia operations
// after calling the platform-specific beginPlatformPaint; this will
// synchronize the bitmap to OS if necessary.
- PlatformDevice::PlatformSurface beginPlatformPaint();
- void endPlatformPaint();
+ PlatformDevice::PlatformSurface beginPlatformPaint() const;
+ void endPlatformPaint() const;
// Returns the platform device pointer of the topmost rect with a non-empty
// clip. In practice, this is usually either the top layer or nothing, since