Build fix: moving some inline function definitions into header.

TBR=reed

git-svn-id: http://skia.googlecode.com/svn/trunk@8709 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
junov@chromium.org 2013-04-16 19:50:30 +00:00
parent acea3ef448
commit 6a9bb804fe
2 changed files with 16 additions and 16 deletions

View File

@ -43,22 +43,6 @@ void SkSurface_Base::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y,
}
}
SkCanvas* SkSurface_Base::getCachedCanvas() {
if (NULL == fCachedCanvas) {
fCachedCanvas = this->onNewCanvas();
this->installIntoCanvasForDirtyNotification();
}
return fCachedCanvas;
}
SkImage* SkSurface_Base::getCachedImage() {
if (NULL == fCachedImage) {
fCachedImage = this->onNewImageSnapshot();
this->installIntoCanvasForDirtyNotification();
}
return fCachedImage;
}
void SkSurface_Base::aboutToDraw() {
this->dirtyGenerationID();

View File

@ -72,4 +72,20 @@ private:
typedef SkSurface INHERITED;
};
SkCanvas* SkSurface_Base::getCachedCanvas() {
if (NULL == fCachedCanvas) {
fCachedCanvas = this->onNewCanvas();
this->installIntoCanvasForDirtyNotification();
}
return fCachedCanvas;
}
SkImage* SkSurface_Base::getCachedImage() {
if (NULL == fCachedImage) {
fCachedImage = this->onNewImageSnapshot();
this->installIntoCanvasForDirtyNotification();
}
return fCachedImage;
}
#endif