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

Unified Diff: src/gpu/GrClipMaskCache.h

Issue 1261643004: Some cleanup in GrTextureProvider and GrResourceProvider (Closed) Base URL: https://skia.googlesource.com/skia.git@pathargs
Patch Set: fix Created 5 years, 5 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/GrClipMaskCache.h
diff --git a/src/gpu/GrClipMaskCache.h b/src/gpu/GrClipMaskCache.h
index 4b702c0d418a424f8d40092e2318744295da5dd5..edba54d372368951bfe1b2d8e32b7ba1d4eb3734 100644
--- a/src/gpu/GrClipMaskCache.h
+++ b/src/gpu/GrClipMaskCache.h
@@ -195,10 +195,10 @@ private:
fLastClipGenID = clipGenID;
- // HACK: set the last param to true to indicate that this request is at
- // flush time and therefore we require a scratch texture with no pending IO operations.
- fLastMask.reset(resourceProvider->refScratchTexture(
- desc, GrTextureProvider::kApprox_ScratchTexMatch, /*flushing=*/true));
+ // TODO: Determine if we really need the NoPendingIO flag anymore.
+ // (http://skbug.com/4156)
+ static const uint32_t kFlags = GrResourceProvider::kNoPendingIO_Flag;
+ fLastMask.reset(resourceProvider->createApproxTexture(desc, kFlags));
fLastBound = bound;
}

Powered by Google App Engine
This is Rietveld 408576698