From 63cd3c64069f563c4a6face789bf4be864694091 Mon Sep 17 00:00:00 2001 From: "junov@chromium.org" Date: Tue, 16 Apr 2013 19:56:45 +0000 Subject: [PATCH] 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 --- src/image/SkSurface.cpp | 6 ------ src/image/SkSurface_Base.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) 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 -- 2.7.4