diff options
| author | 2014-09-08 16:40:21 -0700 | |
|---|---|---|
| committer | 2014-09-08 16:44:47 -0700 | |
| commit | 8a226d24b8b2fde4c855d0051cb7bfc5b5813c36 (patch) | |
| tree | dff0340b91172e35a5e2bff67e013e2fd27623ca /libs/hwui/LayerCache.cpp | |
| parent | 95e71085e2d6f9482679a2a5c34d3d7fbc7d39c6 (diff) | |
Don't track TextureLayer lifecycles in RenderState
bug:17208461
They are destroyed via finalizer-enqueued destroy method, so it's not
valid to check that they've been destroyed at gl context destruction
time.
Change-Id: I670f69825547facd5f31d44acb406418881fee00
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
| -rw-r--r-- | libs/hwui/LayerCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/LayerCache.cpp b/libs/hwui/LayerCache.cpp index efa30ac36a6e..d49daf61bb8a 100644 --- a/libs/hwui/LayerCache.cpp +++ b/libs/hwui/LayerCache.cpp @@ -112,7 +112,7 @@ Layer* LayerCache::get(RenderState& renderState, const uint32_t width, const uin } else { LAYER_LOGD("Creating new layer %dx%d", entry.mWidth, entry.mHeight); - layer = new Layer(renderState, entry.mWidth, entry.mHeight); + layer = new Layer(Layer::kType_DisplayList, renderState, entry.mWidth, entry.mHeight); layer->setBlend(true); layer->setEmpty(true); layer->setFbo(0); |