diff options
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-16 19:50:30 +0000 |
---|---|---|
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-16 19:50:30 +0000 |
commit | 6a9bb804fe939b442425535ff49b25be6dcc61aa (patch) | |
tree | 003614331c7f8353eb220ac3dc67e1f4768a9eab /src/image/SkSurface_Base.h | |
parent | acea3ef448c9903de3aa6a013c839dce577e6ce3 (diff) |
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
Diffstat (limited to 'src/image/SkSurface_Base.h')
-rw-r--r-- | src/image/SkSurface_Base.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/image/SkSurface_Base.h b/src/image/SkSurface_Base.h index d0590bc3ca..fea93444ac 100644 --- a/src/image/SkSurface_Base.h +++ b/src/image/SkSurface_Base.h @@ -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 |