Bug 912042 - Avoid including GLContext.h in headers that don't need it - r=jrmuizel

This commit is contained in:
Benoit Jacob
2013-09-04 08:14:52 -04:00
parent 8be65bb83a
commit 8b1ffe319e
77 changed files with 501 additions and 396 deletions

View File

@@ -50,6 +50,7 @@ using namespace mozilla;
#include "mozilla/dom/ScreenOrientation.h"
#include "mozilla/Hal.h"
#include "GLContextProvider.h"
#include "GLContext.h"
#include "TexturePoolOGL.h"
using namespace mozilla::gl;
@@ -135,9 +136,9 @@ public:
return 0;
SharedTextureHandle handle =
sPluginContext->CreateSharedHandle(GLContext::SameProcess,
sPluginContext->CreateSharedHandle(gl::SameProcess,
(void*)mTextureInfo.mTexture,
GLContext::TextureID);
gl::TextureID);
// We want forget about this now, so delete the texture. Assigning it to zero
// ensures that we create a new one in Lock()
@@ -1013,9 +1014,9 @@ SharedTextureHandle nsNPAPIPluginInstance::CreateSharedHandle()
return mContentTexture->CreateSharedHandle();
} else if (mContentSurface) {
EnsureGLContext();
return sPluginContext->CreateSharedHandle(GLContext::SameProcess,
return sPluginContext->CreateSharedHandle(gl::SameProcess,
mContentSurface,
GLContext::SurfaceTexture);
gl::SurfaceTexture);
} else return 0;
}