aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-07 18:34:08 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-07 18:34:08 +0000
commit982cb875f01e247843b9a79082f680cdcf234c2c (patch)
tree8d09237a3e106a1472555ebd80fef98c9f46d56a /src
parent8e6d914b87a882ebf6ffe8f4be53b86ffec5cf62 (diff)
add SK_OVERRIDE, move subclass impls of virtuals into .cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2823 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/device/xps/SkXPSDevice.cpp9
-rw-r--r--src/pdf/SkPDFDevice.cpp9
2 files changed, 18 insertions, 0 deletions
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp
index eaf61effa3..f9d825424e 100644
--- a/src/device/xps/SkXPSDevice.cpp
+++ b/src/device/xps/SkXPSDevice.cpp
@@ -1119,6 +1119,10 @@ HRESULT SkXPSDevice::createXpsQuad(const SkPoint (&points)[4],
return S_OK;
}
+uint32_t SkXPSDevice::getDeviceCapabilities() {
+ return kVector_Capability;
+}
+
void SkXPSDevice::clear(SkColor color) {
//TODO: override this for XPS
SkDEBUGF(("XPS clear not yet implemented."));
@@ -2362,6 +2366,11 @@ void SkXPSDevice::drawDevice(const SkDraw& d, SkDevice* dev,
"Could not add layer to current visuals.");
}
+bool SkXPSDevice::onReadPixels(const SkBitmap& bitmap, int x, int y,
+ SkCanvas::Config8888) {
+ return false;
+}
+
SkDevice* SkXPSDevice::onCreateCompatibleDevice(SkBitmap::Config config,
int width, int height,
bool isOpaque,
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index 0c1e19a3c1..f46cade14f 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -562,6 +562,10 @@ void SkPDFDevice::cleanUp(bool clearFontUsage) {
}
}
+uint32_t SkPDFDevice::getDeviceCapabilities() {
+ return kVector_Capability;
+}
+
void SkPDFDevice::clear(SkColor color) {
this->cleanUp(true);
this->init();
@@ -1522,3 +1526,8 @@ void SkPDFDevice::internalDrawBitmap(const SkMatrix& matrix,
SkPDFUtils::DrawFormXObject(fXObjectResources.count() - 1,
&content.entry()->fContent);
}
+
+bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y,
+ SkCanvas::Config8888) {
+ return false;
+}