Bug 1099427 - Reformat WebGL. - r=kamidphish
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user