Bug 987311 - 3/6 - Make TextureFlags a typed enum, final manual changes - r=nical

This commit is contained in:
Benoit Jacob
2014-04-25 22:34:05 -04:00
parent 3de8fa4fb5
commit 849b6bea23
24 changed files with 74 additions and 56 deletions

View File

@@ -66,7 +66,7 @@ CanvasClient2D::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
: gfxContentType::COLOR_ALPHA;
gfxImageFormat format
= gfxPlatform::GetPlatform()->OptimalFormatForContent(contentType);
uint32_t flags = TextureFlags::DEFAULT;
TextureFlags flags = TextureFlags::DEFAULT;
if (mTextureFlags & TextureFlags::NEEDS_Y_FLIP) {
flags |= TextureFlags::NEEDS_Y_FLIP;
}