Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: src/gpu/GrLayerCache.cpp

Issue 1139753002: Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrLayerCache.cpp
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp
index aea1c9b30f9f737dbc7a3b82dc2cfbddf688c958..3b461fff23a6d23180889f342396ae1065b16661 100644
--- a/src/gpu/GrLayerCache.cpp
+++ b/src/gpu/GrLayerCache.cpp
@@ -248,9 +248,9 @@ bool GrLayerCache::lock(GrCachedLayer* layer, const GrSurfaceDesc& desc, bool* n
}
// TODO: make the test for exact match depend on the image filters themselves
- GrTextureProvider::ScratchTexMatch usage = GrTextureProvider::kApprox_ScratchTexMatch;
+ GrTextureProvider::ScratchMatch usage = GrTextureProvider::kApprox_ScratchMatch;
if (layer->fFilter) {
- usage = GrTextureProvider::kExact_ScratchTexMatch;
+ usage = GrTextureProvider::kExact_ScratchMatch;
}
SkAutoTUnref<GrTexture> tex(fContext->textureProvider()->refScratchTexture(desc, usage));

Powered by Google App Engine
This is Rietveld 408576698