From 30301c48f73f80f99d651a077821d2e7c7469f31 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 19 Jul 2018 09:39:21 -0400 Subject: share helper for flagging when added to raster cache Rename to clarify that it is a "raster" cache we're talking about. clean up -- motivated by looking to make the purge of a staleID synchronous Bug: skia: Change-Id: I87493690dd5a4f2ebd002e2635ebd0e44fe27320 Reviewed-on: https://skia-review.googlesource.com/142325 Reviewed-by: Brian Salomon Commit-Queue: Mike Reed --- src/gpu/GrImageTextureMaker.cpp | 4 ---- src/gpu/GrImageTextureMaker.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gpu') diff --git a/src/gpu/GrImageTextureMaker.cpp b/src/gpu/GrImageTextureMaker.cpp index a8e62162a6..8571b163f6 100644 --- a/src/gpu/GrImageTextureMaker.cpp +++ b/src/gpu/GrImageTextureMaker.cpp @@ -42,10 +42,6 @@ void GrImageTextureMaker::makeCopyKey(const CopyParams& stretch, GrUniqueKey* pa } } -void GrImageTextureMaker::didCacheCopy(const GrUniqueKey& copyKey, uint32_t contextUniqueID) { - as_IB(fClient)->notifyAddedToCache(); -} - SkAlphaType GrImageTextureMaker::alphaType() const { return fClient->alphaType(); } diff --git a/src/gpu/GrImageTextureMaker.h b/src/gpu/GrImageTextureMaker.h index 1fe882a4f3..04148cfc71 100644 --- a/src/gpu/GrImageTextureMaker.h +++ b/src/gpu/GrImageTextureMaker.h @@ -29,7 +29,7 @@ protected: void makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey, SkColorSpace* dstColorSpace) override; - void didCacheCopy(const GrUniqueKey& copyKey, uint32_t contextUniqueID) override; + void didCacheCopy(const GrUniqueKey& copyKey, uint32_t contextUniqueID) override {} SkAlphaType alphaType() const override; sk_sp getColorSpace(SkColorSpace* dstColorSpace) override; -- cgit v1.2.3