aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-16 19:56:45 +0000
committerGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-16 19:56:45 +0000
commit63cd3c64069f563c4a6face789bf4be864694091 (patch)
tree97b9842d5ef14e8a535c6eb1aad8b9330b046aa2
parent6a9bb804fe939b442425535ff49b25be6dcc61aa (diff)
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
-rw-r--r--src/image/SkSurface.cpp6
-rw-r--r--src/image/SkSurface_Base.h7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp
index c2e39191c0..72507c80dc 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 fea93444ac..32cfc883da 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