fix 'no static globals' for chromium
authorcaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 20 Dec 2011 20:26:56 +0000 (20:26 +0000)
committercaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 20 Dec 2011 20:26:56 +0000 (20:26 +0000)
M    include/core/SkFlattenable.h
M    include/core/SkPixelRef.h
M    src/core/SkGraphics.cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@2908 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkFlattenable.h
include/core/SkPixelRef.h
src/core/SkGraphics.cpp

index 99127af..a66638e 100644 (file)
@@ -100,6 +100,8 @@ private:
 #if !SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
     static void InitializeFlattenables();
 #endif
+
+    friend class SkGraphics;
 };
 
 // helpers for matrix and region
index 3a64393..e247479 100644 (file)
@@ -221,6 +221,8 @@ private:
 
     // can go from false to true, but never from true to false
     bool    fIsImmutable;
+
+    friend class SkGraphics;
 };
 
 #endif
index 1b56936..ff38f85 100644 (file)
@@ -18,6 +18,7 @@
 #include "SkMatrix.h"
 #include "SkPath.h"
 #include "SkPathEffect.h"
+#include "SkPixelRef.h"
 #include "SkRandom.h"
 #include "SkRefCnt.h"
 #include "SkScalerContext.h"