From: junov@chromium.org Date: Tue, 16 Apr 2013 19:56:45 +0000 (+0000) Subject: Build fix: moving more inline functions into header X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~12724 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63cd3c64069f563c4a6face789bf4be864694091;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp index c2e3919..72507c8 100644 --- a/src/image/SkSurface.cpp +++ b/src/image/SkSurface.cpp @@ -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) { fCachedCanvas = NULL; fCachedImage = NULL; diff --git a/src/image/SkSurface_Base.h b/src/image/SkSurface_Base.h index fea9344..32cfc88 100644 --- a/src/image/SkSurface_Base.h +++ b/src/image/SkSurface_Base.h @@ -9,6 +9,7 @@ #define SkSurface_Base_DEFINED #include "SkSurface.h" +#include "SkCanvas.h" class SkSurface_Base : public SkSurface { public: @@ -88,4 +89,10 @@ SkImage* SkSurface_Base::getCachedImage() { return fCachedImage; } +void SkSurface_Base::installIntoCanvasForDirtyNotification() { + if (NULL != fCachedCanvas) { + fCachedCanvas->setSurfaceBase(this); + } +} + #endif