Apply gamma correction to font rendering.
Change-Id: I1b05f40e356221b2a5eb9400e67d77ecd98ed6c4
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h
index 151e29f..fda57b8 100644
--- a/libs/hwui/Caches.h
+++ b/libs/hwui/Caches.h
@@ -25,7 +25,7 @@
#include "LayerCache.h"
#include "GradientCache.h"
#include "PatchCache.h"
-#include "FontRenderer.h"
+#include "GammaFontRenderer.h"
#include "ProgramCache.h"
#include "PathCache.h"
#include "TextDropShadowCache.h"
@@ -42,7 +42,6 @@
class Caches: public Singleton<Caches> {
Caches(): Singleton<Caches>(), blend(false), lastSrcMode(GL_ZERO),
lastDstMode(GL_ZERO), currentProgram(NULL) {
- dropShadowCache.setFontRenderer(fontRenderer);
}
friend class Singleton<Caches>;
@@ -62,7 +61,7 @@
PathCache pathCache;
PatchCache patchCache;
TextDropShadowCache dropShadowCache;
- FontRenderer fontRenderer;
+ GammaFontRenderer fontRenderer;
}; // class Caches
}; // namespace uirenderer