Bug 989027 - 1/2 - Make LayerRenderStateFlags a typed enum, manual changes - r=nical

This commit is contained in:
Benoit Jacob
2014-04-25 22:34:05 -04:00
parent dc2f2c47c0
commit f85f01f2e6
2 changed files with 26 additions and 20 deletions

View File

@@ -370,7 +370,7 @@ LayerRenderState
GrallocTextureHostOGL::GetRenderState()
{
if (IsValid()) {
uint32_t flags = 0;
LayerRenderStateFlags flags = LayerRenderStateFlags::LAYER_RENDER_STATE_DEFAULT;
if (mFlags & TextureFlags::NEEDS_Y_FLIP) {
flags |= LAYER_RENDER_STATE_Y_FLIPPED;
}