Bug 865104 - Implement a BasicCompositor. r=nrc
This commit is contained in:
@@ -53,6 +53,7 @@ CanvasClient2D::Update(gfx::IntSize aSize, BasicCanvasLayer* aLayer)
|
||||
{
|
||||
if (!mTextureClient) {
|
||||
mTextureClient = CreateTextureClient(TEXTURE_SHMEM);
|
||||
MOZ_ASSERT(mTextureClient, "Failed to create texture client");
|
||||
}
|
||||
|
||||
bool isOpaque = (aLayer->GetContentFlags() & Layer::CONTENT_OPAQUE);
|
||||
@@ -78,6 +79,7 @@ CanvasClientWebGL::Update(gfx::IntSize aSize, BasicCanvasLayer* aLayer)
|
||||
{
|
||||
if (!mTextureClient) {
|
||||
mTextureClient = CreateTextureClient(TEXTURE_STREAM_GL);
|
||||
MOZ_ASSERT(mTextureClient, "Failed to create texture client");
|
||||
}
|
||||
|
||||
NS_ASSERTION(aLayer->mGLContext, "CanvasClientWebGL should only be used with GL canvases");
|
||||
|
||||
Reference in New Issue
Block a user