From 5236cf480daf82b2f36e42795abdbbc915533a59 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Wed, 14 Jan 2015 10:42:08 -0800 Subject: 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 --- include/gpu/GrSurface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/gpu/GrSurface.h') 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; -- cgit v1.2.3