diff options
author | 2013-01-18 16:42:51 -0800 | |
---|---|---|
committer | 2013-01-18 16:42:51 -0800 | |
commit | 2055abaa0a590c35e27e1ae2e7d7cfccdfb98b59 (patch) | |
tree | 1e302d08b6aa3714048a4d8435aa44f155c998c9 /libs/hwui/LayerRenderer.cpp | |
parent | f25febf01453733e8bdd1ac241ecd9d3bcbef475 (diff) |
Allow layers with a stencil buffer to be resized on the fly
Bug #7146141
This change moves the resizeLayer() from LayerCache (where it should
never have been anyway) to Layer. This makes a little more sense.
Change-Id: I8b2f9c19c558e738405a58b9e71ec5799fc6be88
Diffstat (limited to 'libs/hwui/LayerRenderer.cpp')
-rw-r--r-- | libs/hwui/LayerRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp index ba59bb391f1d..61bedbb0f388 100644 --- a/libs/hwui/LayerRenderer.cpp +++ b/libs/hwui/LayerRenderer.cpp @@ -264,7 +264,7 @@ bool LayerRenderer::resizeLayer(Layer* layer, uint32_t width, uint32_t height) { if (layer) { LAYER_RENDERER_LOGD("Resizing layer fbo = %d to %dx%d", layer->getFbo(), width, height); - if (Caches::getInstance().layerCache.resize(layer, width, height)) { + if (layer->resize(width, height)) { layer->layer.set(0.0f, 0.0f, width, height); layer->texCoords.set(0.0f, height / float(layer->getHeight()), width / float(layer->getWidth()), 0.0f); |