Build fix: moving more inline functions into header

TBR=reed

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

View File

@ -13,12 +13,6 @@ SK_DEFINE_INST_COUNT(SkSurface)
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
void SkSurface_Base::installIntoCanvasForDirtyNotification() {
if (fCachedCanvas) {
fCachedCanvas->setSurfaceBase(this);
}
}
SkSurface_Base::SkSurface_Base(int width, int height) : INHERITED(width, height) { SkSurface_Base::SkSurface_Base(int width, int height) : INHERITED(width, height) {
fCachedCanvas = NULL; fCachedCanvas = NULL;
fCachedImage = NULL; fCachedImage = NULL;

View File

@ -9,6 +9,7 @@
#define SkSurface_Base_DEFINED #define SkSurface_Base_DEFINED
#include "SkSurface.h" #include "SkSurface.h"
#include "SkCanvas.h"
class SkSurface_Base : public SkSurface { class SkSurface_Base : public SkSurface {
public: public:
@ -88,4 +89,10 @@ SkImage* SkSurface_Base::getCachedImage() {
return fCachedImage; return fCachedImage;
} }
void SkSurface_Base::installIntoCanvasForDirtyNotification() {
if (NULL != fCachedCanvas) {
fCachedCanvas->setSurfaceBase(this);
}
}
#endif #endif