summaryrefslogtreecommitdiffstats
path: root/skia/ext/bitmap_platform_device_mac.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 18:09:28 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 18:09:28 +0000
commit1d20cdf4cb74b3a1b47c7bd62d3e3d17be4c6013 (patch)
treec6fb735e4c27f3e693e2607ca2e02fede2288834 /skia/ext/bitmap_platform_device_mac.cc
parent3843213f9024e066f7107c071dc711be31f44487 (diff)
downloadchromium_src-1d20cdf4cb74b3a1b47c7bd62d3e3d17be4c6013.zip
chromium_src-1d20cdf4cb74b3a1b47c7bd62d3e3d17be4c6013.tar.gz
chromium_src-1d20cdf4cb74b3a1b47c7bd62d3e3d17be4c6013.tar.bz2
Fix some of the more common chromium-style errors on the mac clang builder.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6525038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/bitmap_platform_device_mac.cc')
-rw-r--r--skia/ext/bitmap_platform_device_mac.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/skia/ext/bitmap_platform_device_mac.cc b/skia/ext/bitmap_platform_device_mac.cc
index 8435dbe..5a25abf 100644
--- a/skia/ext/bitmap_platform_device_mac.cc
+++ b/skia/ext/bitmap_platform_device_mac.cc
@@ -201,6 +201,10 @@ BitmapPlatformDevice::~BitmapPlatformDevice() {
data_->unref();
}
+SkDeviceFactory* BitmapPlatformDevice::getDeviceFactory() {
+ return SkNEW(BitmapPlatformDeviceFactory);
+}
+
BitmapPlatformDevice& BitmapPlatformDevice::operator=(
const BitmapPlatformDevice& other) {
data_ = other.data_;
@@ -249,6 +253,10 @@ void BitmapPlatformDevice::DrawToContext(CGContextRef context, int x, int y,
data_->ReleaseBitmapContext();
}
+bool BitmapPlatformDevice::IsVectorial() {
+ return false;
+}
+
// Returns the color value at the specified location.
SkColor BitmapPlatformDevice::getColorAt(int x, int y) {
const SkBitmap& bitmap = accessBitmap(true);