summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_canvas_linux.cc
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_linux.cc
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_linux.cc')
-rw-r--r--skia/ext/platform_canvas_linux.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/skia/ext/platform_canvas_linux.cc b/skia/ext/platform_canvas_linux.cc
index 5d3594e..fc038f9 100644
--- a/skia/ext/platform_canvas_linux.cc
+++ b/skia/ext/platform_canvas_linux.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -33,11 +33,11 @@ bool PlatformCanvas::initialize(int width, int height, bool is_opaque,
width, height, is_opaque, data));
}
-cairo_t* PlatformCanvas::beginPlatformPaint() {
+cairo_t* PlatformCanvas::beginPlatformPaint() const {
return getTopPlatformDevice().beginPlatformPaint();
}
-void PlatformCanvas::endPlatformPaint() {
+void PlatformCanvas::endPlatformPaint() const {
// We don't need to do anything on Linux here.
}