diff options
author | 2014-06-23 13:13:08 -0700 | |
---|---|---|
committer | 2014-06-23 15:26:49 -0700 | |
commit | 3b20251a355c88193c439f928a84ae69483fb488 (patch) | |
tree | 33c878ebacf17cf03d089404474fa66ca041ffb9 /libs/hwui/LayerCache.cpp | |
parent | 97a6c20a6a52c9429ed2c8837086f3003e5da274 (diff) |
No-fail invokeFunctor
Bug: 15513308
Bug: 15449247
Change-Id: I13a29f9c8d4975cdda6dcb33b6332c2555ff0f7c
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
-rw-r--r-- | libs/hwui/LayerCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/LayerCache.cpp b/libs/hwui/LayerCache.cpp index 6be014684aef..13869aadea16 100644 --- a/libs/hwui/LayerCache.cpp +++ b/libs/hwui/LayerCache.cpp @@ -91,7 +91,7 @@ void LayerCache::clear() { mCache.clear(); } -Layer* LayerCache::get(const uint32_t width, const uint32_t height) { +Layer* LayerCache::get(RenderState& renderState, const uint32_t width, const uint32_t height) { Layer* layer = NULL; LayerEntry entry(width, height); @@ -108,7 +108,7 @@ Layer* LayerCache::get(const uint32_t width, const uint32_t height) { } else { LAYER_LOGD("Creating new layer %dx%d", entry.mWidth, entry.mHeight); - layer = new Layer(entry.mWidth, entry.mHeight); + layer = new Layer(renderState, entry.mWidth, entry.mHeight); layer->setBlend(true); layer->setEmpty(true); layer->setFbo(0); |