Bug 867474 - Split BasicShadowableLayerManager into a separate ClientLayerManager. r=nrc

This commit is contained in:
Matt Woodrow
2013-05-01 17:03:25 +12:00
parent 20c051b6be
commit 021593347d
40 changed files with 2097 additions and 1576 deletions

View File

@@ -5,7 +5,7 @@
#include "mozilla/layers/CanvasClient.h"
#include "mozilla/layers/TextureClient.h"
#include "BasicCanvasLayer.h"
#include "ClientCanvasLayer.h"
#include "mozilla/layers/ShadowLayers.h"
#include "SharedTextureImage.h"
#include "nsXULAppAPI.h"
@@ -49,7 +49,7 @@ CanvasClient2D::CanvasClient2D(CompositableForwarder* aFwd,
}
void
CanvasClient2D::Update(gfx::IntSize aSize, BasicCanvasLayer* aLayer)
CanvasClient2D::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
{
if (!mTextureClient) {
mTextureClient = CreateTextureClient(TEXTURE_SHMEM);
@@ -63,7 +63,7 @@ CanvasClient2D::Update(gfx::IntSize aSize, BasicCanvasLayer* aLayer)
mTextureClient->EnsureAllocated(aSize, contentType);
gfxASurface* surface = mTextureClient->LockSurface();
static_cast<BasicCanvasLayer*>(aLayer)->UpdateSurface(surface, nullptr);
aLayer->UpdateSurface(surface);
mTextureClient->Unlock();
}
@@ -75,7 +75,7 @@ CanvasClientWebGL::CanvasClientWebGL(CompositableForwarder* aFwd,
}
void
CanvasClientWebGL::Update(gfx::IntSize aSize, BasicCanvasLayer* aLayer)
CanvasClientWebGL::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
{
if (!mTextureClient) {
mTextureClient = CreateTextureClient(TEXTURE_STREAM_GL);