diff options
author | 2015-01-14 10:42:08 -0800 | |
---|---|---|
committer | 2015-01-14 10:42:08 -0800 | |
commit | 5236cf480daf82b2f36e42795abdbbc915533a59 (patch) | |
tree | b3e76998aabf4849c60d7bc0c701de47b2aaf4e9 /include/gpu/GrSurface.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 'include/gpu/GrSurface.h')
-rw-r--r-- | include/gpu/GrSurface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h index 8f772b3d5a..2b40f9c1d7 100644 --- a/include/gpu/GrSurface.h +++ b/include/gpu/GrSurface.h @@ -138,9 +138,9 @@ protected: // Provides access to methods that should be public within Skia code. friend class GrSurfacePriv; - GrSurface(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) - : INHERITED(gpu, isWrapped) - , fDesc(desc) { + GrSurface(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc) + : INHERITED(gpu, lifeCycle) + , fDesc(desc) { } GrSurfaceDesc fDesc; |