aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-06-26 11:32:40 -0400
committerGravatar Kevin Lubick <kjlubick@google.com>2018-06-26 16:47:39 +0000
commit6a284b771632f547b8a2d31115d3df4601c53228 (patch)
treeaa30ba0c7b82b20d0f18fc3ec0d4803454bd31b5
parent9c0ce41cf71197e06894002b1f29d34ed124e8ad (diff)
Clean up includes in SkMallocPixelRef
Came across this unnecessary includes while experimenting with WASM Change-Id: I68061c7bbd18ed5695b94b3b8de6dbb63407b8ee Reviewed-on: https://skia-review.googlesource.com/137582 Reviewed-by: Mike Klein <mtklein@google.com>
-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));