Bug 1099427 - Reformat WebGL. - r=kamidphish

This commit is contained in:
Jeff Gilbert
2014-11-13 20:03:50 -08:00
parent 80163f5ae6
commit d9b9968e9c
89 changed files with 4181 additions and 3707 deletions

View File

@@ -4,16 +4,22 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "WebGLObjectModel.h"
#include "WebGLContext.h"
using namespace mozilla;
namespace mozilla {
WebGLContextBoundObject::WebGLContextBoundObject(WebGLContext *context) {
mContext = context;
mContextGeneration = context->Generation();
WebGLContextBoundObject::WebGLContextBoundObject(WebGLContext* webgl)
: mContext(webgl)
, mContextGeneration(webgl->Generation())
{
}
bool
WebGLContextBoundObject::IsCompatibleWithContext(WebGLContext *other) {
return mContext == other &&
mContextGeneration == other->Generation();
WebGLContextBoundObject::IsCompatibleWithContext(WebGLContext* other)
{
return (mContext == other &&
mContextGeneration == other->Generation());
}
} // namespace mozilla