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

Unified Diff: src/gpu/GrContext.cpp

Issue 1050633002: Revert of BitmapTextBatch and BitmapTextBlob (Closed) Base URL: https://skia.googlesource.com/skia.git@dfpr_take_2
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index a1f1c253a7ce45c5c4f2918891a412d9797e371c..4c7f3eabe0e77116974e10160408ed7cb4c94dc8 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -10,9 +10,7 @@
#include "GrAARectRenderer.h"
#include "GrBatch.h"
-#include "GrBatchFontCache.h"
#include "GrBatchTarget.h"
-#include "GrBitmapTextContext.h"
#include "GrBufferAllocPool.h"
#include "GrDefaultGeoProcFactory.h"
#include "GrFontCache.h"
@@ -96,7 +94,6 @@
fPathRendererChain = NULL;
fSoftwarePathRenderer = NULL;
fResourceCache = NULL;
- fBatchFontCache = NULL;
fFontCache = NULL;
fDrawBuffer = NULL;
fDrawBufferVBAllocPool = NULL;
@@ -132,10 +129,6 @@
fDidTestPMConversions = false;
this->setupDrawBuffer();
-
- // GrBatchFontCache will eventually replace GrFontCache
- fBatchFontCache = SkNEW(GrBatchFontCache);
- fBatchFontCache->init(this);
}
GrContext::~GrContext() {
@@ -150,7 +143,6 @@
}
SkDELETE(fResourceCache);
- SkDELETE(fBatchFontCache);
SkDELETE(fFontCache);
SkDELETE(fDrawBuffer);
SkDELETE(fDrawBufferVBAllocPool);
@@ -188,7 +180,6 @@
fAARectRenderer->reset();
fOvalRenderer->reset();
- fBatchFontCache->freeAll();
fFontCache->freeAll();
fLayerCache->freeAll();
}
@@ -207,7 +198,6 @@
fAARectRenderer->reset();
fOvalRenderer->reset();
- fBatchFontCache->freeAll();
fFontCache->freeAll();
fLayerCache->freeAll();
// a path renderer may be holding onto resources
@@ -236,12 +226,8 @@
}
}
-#ifdef USE_BITMAP_TEXTBLOBS
- return GrBitmapTextContextB::Create(this, gpuDevice, leakyProperties);
-#else
return GrDistanceFieldTextContext::Create(this, gpuDevice, leakyProperties,
enableDistanceFieldFonts);
-#endif
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698