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