Make SkPDFDevice::setOrigin accessible to Chrome's VectorPlatformDeviceSkia.

BUG=chrome 82746

Review URL: http://codereview.appspot.com/4888048

git-svn-id: http://skia.googlecode.com/svn/trunk@2116 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
vandebo@chromium.org 2011-08-15 21:20:59 +00:00
Родитель 06546d81f2
Коммит 7b5e017169
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -167,7 +167,12 @@ public:
return *(fFontGlyphUsage.get());
}
// TODO(vandebo) Remove this as soon as Chrome's Platform device goes away.
void setOrigin(int x, int y);
private:
typedef SkDevice INHERITED;
// TODO(vandebo) push most of SkPDFDevice's state into a core object in
// order to get the right access levels without using friend.
friend class ScopedContentEntry;

Просмотреть файл

@ -1158,6 +1158,10 @@ SkData* SkPDFDevice::copyContentToData() const {
return data.copyToData();
}
void SkPDFDevice::setOrigin(int x, int y) {
INHERITED::setOrigin(x, y);
}
void SkPDFDevice::createFormXObjectFromDevice(
SkRefPtr<SkPDFFormXObject>* xobject) {
*xobject = new SkPDFFormXObject(this);