aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bench/ETCBitmapBench.cpp2
-rw-r--r--tools/sk_tool_utils.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/bench/ETCBitmapBench.cpp b/bench/ETCBitmapBench.cpp
index d4068ca88e..fe6fe06057 100644
--- a/bench/ETCBitmapBench.cpp
+++ b/bench/ETCBitmapBench.cpp
@@ -123,7 +123,7 @@ public:
: fDecompress(decompress), fBackend(backend) { }
bool isSuitableFor(Backend backend) override {
- return backend == this->fBackend;
+ return SkToBool(fImage) && backend == this->fBackend;
}
protected:
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp
index 9a667b4a45..e2bc0fc42c 100644
--- a/tools/sk_tool_utils.cpp
+++ b/tools/sk_tool_utils.cpp
@@ -352,7 +352,7 @@ void make_big_path(SkPath& path) {
static float gaussian2d_value(int x, int y, float sigma) {
// don't bother with the scale term since we're just going to normalize the
// kernel anyways
- float temp = exp(-(x*x + y*y)/(2*sigma*sigma));
+ float temp = expf(-(x*x + y*y)/(2*sigma*sigma));
return temp;
}