| Index: src/pdf/SkPDFDevice.cpp
|
| ===================================================================
|
| --- src/pdf/SkPDFDevice.cpp (revision 10994)
|
| +++ src/pdf/SkPDFDevice.cpp (working copy)
|
| @@ -566,10 +566,10 @@
|
| }
|
| }
|
|
|
| -SkDevice* SkPDFDevice::onCreateCompatibleDevice(SkBitmap::Config config,
|
| - int width, int height,
|
| - bool isOpaque,
|
| - Usage usage) {
|
| +SkBaseDevice* SkPDFDevice::onCreateCompatibleDevice(SkBitmap::Config config,
|
| + int width, int height,
|
| + bool isOpaque,
|
| + Usage usage) {
|
| SkMatrix initialTransform;
|
| initialTransform.reset();
|
| SkISize size = SkISize::Make(width, height);
|
| @@ -672,7 +672,7 @@
|
| // TODO(vandebo) change pageSize to SkSize.
|
| SkPDFDevice::SkPDFDevice(const SkISize& pageSize, const SkISize& contentSize,
|
| const SkMatrix& initialTransform)
|
| - : SkDevice(makeContentBitmap(contentSize, &initialTransform)),
|
| + : SkBitmapDevice(makeContentBitmap(contentSize, &initialTransform)),
|
| fPageSize(pageSize),
|
| fContentSize(contentSize),
|
| fLastContentEntry(NULL),
|
| @@ -696,7 +696,7 @@
|
| SkPDFDevice::SkPDFDevice(const SkISize& layerSize,
|
| const SkClipStack& existingClipStack,
|
| const SkRegion& existingClipRegion)
|
| - : SkDevice(makeContentBitmap(layerSize, NULL)),
|
| + : SkBitmapDevice(makeContentBitmap(layerSize, NULL)),
|
| fPageSize(layerSize),
|
| fContentSize(layerSize),
|
| fExistingClipStack(existingClipStack),
|
| @@ -1153,11 +1153,11 @@
|
| NOT_IMPLEMENTED("drawVerticies", true);
|
| }
|
|
|
| -void SkPDFDevice::drawDevice(const SkDraw& d, SkDevice* device, int x, int y,
|
| +void SkPDFDevice::drawDevice(const SkDraw& d, SkBaseDevice* device, int x, int y,
|
| const SkPaint& paint) {
|
| if ((device->getDeviceCapabilities() & kVector_Capability) == 0) {
|
| // If we somehow get a raster device, do what our parent would do.
|
| - SkDevice::drawDevice(d, device, x, y, paint);
|
| + INHERITED::drawDevice(d, device, x, y, paint);
|
| return;
|
| }
|
|
|
|
|