diff options
author | bsalomon <bsalomon@google.com> | 2015-01-14 10:42:08 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-14 10:42:08 -0800 |
commit | 5236cf480daf82b2f36e42795abdbbc915533a59 (patch) | |
tree | b3e76998aabf4849c60d7bc0c701de47b2aaf4e9 /src/gpu/GrPath.h | |
parent | 028b98a08072bd1764936e47c54fa2da5cf92744 (diff) |
Make uncached textures uncached from the get go.
This avoids the problem of a newly created uncached texture causing a purge of cached resources.
BUG=chromium:445885
Review URL: https://codereview.chromium.org/846303002
Diffstat (limited to 'src/gpu/GrPath.h')
-rw-r--r-- | src/gpu/GrPath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h index 394db6f5c2..eaa3b40fdb 100644 --- a/src/gpu/GrPath.h +++ b/src/gpu/GrPath.h @@ -20,8 +20,8 @@ public: /** * Initialize to a path with a fixed stroke. Stroke must not be hairline. */ - GrPath(GrGpu* gpu, bool isWrapped, const SkPath& skPath, const SkStrokeRec& stroke) - : INHERITED(gpu, isWrapped), + GrPath(GrGpu* gpu, const SkPath& skPath, const SkStrokeRec& stroke) + : INHERITED(gpu, kCached_LifeCycle), fSkPath(skPath), fStroke(stroke), fBounds(skPath.getBounds()) { |