| Index: src/device/xps/SkXPSDevice.cpp
|
| ===================================================================
|
| --- src/device/xps/SkXPSDevice.cpp (revision 10994)
|
| +++ src/device/xps/SkXPSDevice.cpp (working copy)
|
| @@ -111,7 +111,7 @@
|
| }
|
|
|
| SkXPSDevice::SkXPSDevice()
|
| - : SkDevice(make_fake_bitmap(10000, 10000))
|
| + : SkBitmapDevice(make_fake_bitmap(10000, 10000))
|
| , fCurrentPage(0) {
|
| }
|
|
|
| @@ -2375,7 +2375,7 @@
|
| d.drawTextOnPath((const char*)text, len, path, matrix, paint);
|
| }
|
|
|
| -void SkXPSDevice::drawDevice(const SkDraw& d, SkDevice* dev,
|
| +void SkXPSDevice::drawDevice(const SkDraw& d, SkBaseDevice* dev,
|
| int x, int y,
|
| const SkPaint&) {
|
| SkXPSDevice* that = static_cast<SkXPSDevice*>(dev);
|
| @@ -2407,11 +2407,11 @@
|
| return false;
|
| }
|
|
|
| -SkDevice* SkXPSDevice::onCreateCompatibleDevice(SkBitmap::Config config,
|
| - int width, int height,
|
| - bool isOpaque,
|
| - Usage usage) {
|
| - if (SkDevice::kGeneral_Usage == usage) {
|
| +SkBaseDevice* SkXPSDevice::onCreateCompatibleDevice(SkBitmap::Config config,
|
| + int width, int height,
|
| + bool isOpaque,
|
| + Usage usage) {
|
| + if (SkBaseDevice::kGeneral_Usage == usage) {
|
| return NULL;
|
| SK_CRASH();
|
| //To what stream do we write?
|
| @@ -2425,7 +2425,7 @@
|
| }
|
|
|
| SkXPSDevice::SkXPSDevice(IXpsOMObjectFactory* xpsFactory)
|
| - : SkDevice(make_fake_bitmap(10000, 10000))
|
| + : SkBitmapDevice(make_fake_bitmap(10000, 10000))
|
| , fCurrentPage(0) {
|
|
|
| HRVM(CoCreateInstance(
|
|
|