Merge "SurfaceFlinger: use the HWC gralloc usage bit"

This commit is contained in:
Jamie Gennis 2011-08-24 15:12:04 -07:00 committed by Android (Google) Code Review
commit 85b6f7afea
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public:
USAGE_HW_TEXTURE = GRALLOC_USAGE_HW_TEXTURE,
USAGE_HW_RENDER = GRALLOC_USAGE_HW_RENDER,
USAGE_HW_2D = GRALLOC_USAGE_HW_2D,
USAGE_HW_COMPOSER = GRALLOC_USAGE_HW_COMPOSER,
USAGE_HW_MASK = GRALLOC_USAGE_HW_MASK
};

View File

@ -556,6 +556,7 @@ uint32_t Layer::getEffectiveUsage(uint32_t usage) const
// need a hardware-protected path to external video sink
usage |= GraphicBuffer::USAGE_PROTECTED;
}
usage |= GraphicBuffer::USAGE_HW_COMPOSER;
return usage;
}