aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkBitmap.h2
-rw-r--r--include/core/SkImage.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 59b6482735..64f2e24133 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -17,6 +17,7 @@
#include "SkPoint.h"
#include "SkRefCnt.h"
+struct SkImageInfo;
struct SkIRect;
struct SkRect;
class SkPaint;
@@ -259,6 +260,7 @@ public:
kPremul_SkAlphaType);
}
+ bool setConfig(const SkImageInfo& info, size_t rowBytes = 0);
/** Use this to assign a new pixel address for an existing bitmap. This
will automatically release any pixelref previously installed. Only call
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 97dc7999e5..ae8bbf5d50 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -47,6 +47,9 @@ struct SkImageInfo {
SkAlphaType fAlphaType;
};
+bool operator==(const SkImageInfo& lhs, const SkImageInfo& rhs);
+bool operator!=(const SkImageInfo& lhs, const SkImageInfo& rhs);
+
/**
* SkImage is an abstraction for drawing a rectagle of pixels, though the
* particular type of image could be actually storing its data on the GPU, or