Bug 939276 - Use a single GLContext for all SkiaGL canvases r=bjacob,gwright,dglastonbury

This commit is contained in:
James Willcox
2014-02-14 15:55:58 -06:00
parent 1d861f4f18
commit 81769a9d59
26 changed files with 348 additions and 294 deletions

View File

@@ -86,7 +86,6 @@ SharedTextureClientOGL::IsAllocated() const
StreamTextureClientOGL::StreamTextureClientOGL(TextureFlags aFlags)
: TextureClient(aFlags)
, mStream(0)
, mIsLocked(false)
{
}
@@ -131,6 +130,7 @@ StreamTextureClientOGL::InitWith(gfx::SurfaceStream* aStream)
{
MOZ_ASSERT(!IsAllocated());
mStream = aStream;
mGL = mStream->GLContext();
}
bool