aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPath.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-09-15 13:55:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-15 13:55:33 -0700
commit7bffcd2673015f04fd3e20785746be38dd81b566 (patch)
tree4f43009d1944e748a805a5a10d2ceceb961b4775 /src/gpu/GrPath.h
parentfe6ca0f798614d7cd6a18fed4869e3c5bd56d438 (diff)
Fix key computation for GrPaths
Improve tests to ensure paths are receiving valid keys GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2342873002 Review-Url: https://codereview.chromium.org/2342873002
Diffstat (limited to 'src/gpu/GrPath.h')
-rw-r--r--src/gpu/GrPath.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h
index ee3123f9b5..19538370d5 100644
--- a/src/gpu/GrPath.h
+++ b/src/gpu/GrPath.h
@@ -14,6 +14,8 @@
#include "SkPath.h"
#include "SkRect.h"
+class GrShape;
+
class GrPath : public GrGpuResource {
public:
/**
@@ -30,8 +32,7 @@ public:
{
}
- static void ComputeKey(const SkPath& path, const GrStyle& style, GrUniqueKey* key,
- bool* outIsVolatile);
+ static void ComputeKey(const GrShape&, GrUniqueKey* key, bool* outIsVolatile);
const SkRect& getBounds() const { return fBounds; }