aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkMallocPixelRef.h4
-rw-r--r--src/core/SkMallocPixelRef.cpp6
2 files changed, 7 insertions, 3 deletions
diff --git a/include/core/SkMallocPixelRef.h b/include/core/SkMallocPixelRef.h
index dce3c0ecbb..c85c924741 100644
--- a/include/core/SkMallocPixelRef.h
+++ b/include/core/SkMallocPixelRef.h
@@ -9,6 +9,10 @@
#define SkMallocPixelRef_DEFINED
#include "SkPixelRef.h"
+#include "SkRefCnt.h"
+#include "SkTypes.h"
+class SkData;
+struct SkImageInfo;
/** We explicitly use the same allocator for our pixels that SkMask does,
so that we can freely assign memory allocated by one class to the other.
diff --git a/src/core/SkMallocPixelRef.cpp b/src/core/SkMallocPixelRef.cpp
index 2933e48cc4..8bef6c355c 100644
--- a/src/core/SkMallocPixelRef.cpp
+++ b/src/core/SkMallocPixelRef.cpp
@@ -5,11 +5,11 @@
* found in the LICENSE file.
*/
+#include "SkData.h"
+#include "SkImageInfo.h"
+#include "SkMalloc.h"
#include "SkMallocPixelRef.h"
-#include "SkBitmap.h"
-#include "SkReadBuffer.h"
#include "SkSafeMath.h"
-#include "SkWriteBuffer.h"
void* sk_calloc_throw(size_t count, size_t elemSize) {
return sk_calloc_throw(SkSafeMath::Mul(count, elemSize));