summaryrefslogtreecommitdiff
path: root/libs/hwui/LayerCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2011-01-06 10:04:23 -0800
committer Romain Guy <romainguy@google.com> 2011-01-06 18:34:30 -0800
commit171c592f0b7066acf279863c8a52ddabea49d3db (patch)
treeeebf9a8c82c6a6d9db6edbf077b9299a96ae36e4 /libs/hwui/LayerCache.cpp
parentf0fe6d311d183c5fcf45d5e3e995fc8f9ed12f8b (diff)
New layers API for Views.
This API can be used to back a view and its children with either a software layer (bitmap) or hardware layer (FBO). Layers have various usages, including color filtering and performance improvements during animations. Change-Id: Ifc3bea847918042730fc5a8c2d4206dd6c9420a3
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
-rw-r--r--libs/hwui/LayerCache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/LayerCache.cpp b/libs/hwui/LayerCache.cpp
index 9ce0359140bb..ec186a481e7c 100644
--- a/libs/hwui/LayerCache.cpp
+++ b/libs/hwui/LayerCache.cpp
@@ -102,6 +102,7 @@ Layer* LayerCache::get(const uint32_t width, const uint32_t height) {
layer->blend = true;
layer->empty = true;
layer->fbo = 0;
+ layer->colorFilter = NULL;
glGenTextures(1, &layer->texture);
glBindTexture(GL_TEXTURE_2D, layer->texture);