summaryrefslogtreecommitdiff
path: root/libs/hwui/renderstate/RenderState.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-05-24 16:27:35 -0700
committerJohn Reck <jreck@google.com>2018-05-30 16:40:07 -0700
commite4c1e6c5a18eb9cfa9025363c5a991b2c683ed68 (patch)
tree0135f234fc7e60854587585e4eb3c8875aeddf0d /libs/hwui/renderstate/RenderState.cpp
parent1a2a40552a261bf3efecf09a9af472c4e9d0157c (diff)
Remove dead code
Test: builds Change-Id: I57cf72ca460115463d7759097d5ba598b5ec1775
Diffstat (limited to 'libs/hwui/renderstate/RenderState.cpp')
-rw-r--r--libs/hwui/renderstate/RenderState.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/libs/hwui/renderstate/RenderState.cpp b/libs/hwui/renderstate/RenderState.cpp
index 6783503f4ae8..3be84f588a20 100644
--- a/libs/hwui/renderstate/RenderState.cpp
+++ b/libs/hwui/renderstate/RenderState.cpp
@@ -42,11 +42,6 @@ RenderState::~RenderState() {
void RenderState::onGLContextCreated() {
GpuMemoryTracker::onGpuContextCreated();
- // Deferred because creation needs GL context for texture limits
- if (!mLayerPool) {
- mLayerPool = new OffscreenBufferPool();
- }
-
// This is delayed because the first access of Caches makes GL calls
if (!mCaches) {
mCaches = &Caches::createInstance(*this);
@@ -61,8 +56,6 @@ static void layerLostGlContext(Layer* layer) {
}
void RenderState::onGLContextDestroyed() {
- mLayerPool->clear();
-
// TODO: reset all cached state in state objects
std::for_each(mActiveLayers.begin(), mActiveLayers.end(), layerLostGlContext);
@@ -93,15 +86,6 @@ GrContext* RenderState::getGrContext() const {
}
void RenderState::flush(Caches::FlushMode mode) {
- switch (mode) {
- case Caches::FlushMode::Full:
- // fall through
- case Caches::FlushMode::Moderate:
- // fall through
- case Caches::FlushMode::Layers:
- if (mLayerPool) mLayerPool->clear();
- break;
- }
if (mCaches) mCaches->flush(mode);
}