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:
parent
acea3ef448
commit
6a9bb804fe
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user