Rename opPODAllocator to recordTimeAllocator
Hopefully this is a better name. "POD" is no longer accurate since we are storing GrPipeline's in this arena.
Bug: skia:9455
Change-Id: I610267633088b0af4f0cbb36f479bf5eb6c6d0cb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/254992
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrRecordingContext.cpp b/src/gpu/GrRecordingContext.cpp
index 58eb8c5..b7f9d46 100644
--- a/src/gpu/GrRecordingContext.cpp
+++ b/src/gpu/GrRecordingContext.cpp
@@ -137,18 +137,20 @@
// Stored in this arena:
// GrTextureOp's DynamicStateArrays and FixedDynamicState
-SkArenaAlloc* GrRecordingContext::opPODAllocator() {
- if (!fOpPODAllocator) {
+// some GrGeometryProcessors, GrPipelines and GrProgramInfos
+SkArenaAlloc* GrRecordingContext::recordTimeAllocator() {
+ if (!fRecordTimeAllocator) {
// TODO: empirically determine a better number for SkArenaAlloc's firstHeapAllocation param
- fOpPODAllocator = std::unique_ptr<SkArenaAlloc>(new SkArenaAlloc(sizeof(GrPipeline) * 100));
+ fRecordTimeAllocator = std::unique_ptr<SkArenaAlloc>(
+ new SkArenaAlloc(sizeof(GrPipeline) * 100));
}
- SkASSERT(fOpPODAllocator);
- return fOpPODAllocator.get();
+ SkASSERT(fRecordTimeAllocator);
+ return fRecordTimeAllocator.get();
}
-std::unique_ptr<SkArenaAlloc> GrRecordingContext::detachOpPOD() {
- return std::move(fOpPODAllocator);
+std::unique_ptr<SkArenaAlloc> GrRecordingContext::detachRecordTimeAllocator() {
+ return std::move(fRecordTimeAllocator);
}
GrTextBlobCache* GrRecordingContext::getTextBlobCache() {
@@ -322,8 +324,8 @@
return fContext->refCaps();
}
-std::unique_ptr<SkArenaAlloc> GrRecordingContextPriv::detachOpPOD() {
- return fContext->detachOpPOD();
+std::unique_ptr<SkArenaAlloc> GrRecordingContextPriv::detachRecordTimeAllocator() {
+ return fContext->detachRecordTimeAllocator();
}
sk_sp<GrSkSLFPFactoryCache> GrRecordingContextPriv::fpFactoryCache() {