dom/canvas/WebGLSync.cpp
author Sotaro Ikeda <sikeda@mozilla.com>
Tue, 03 Mar 2015 08:51:05 -0800
changeset 250242 610aae9b5e36906b303dde44af508a1c30d1675c
parent 242125 10a7d6c3fa977bcc39c82ee01b94b5f7ce2fe46f
child 263317 0b0c492a33b545fb9daa9b041969e17b5dcbe00e
permissions -rw-r--r--
Bug 1137251 - Disable RemoveTextureFromCompositableTracker except gonk. r=nical, a=lizzard

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "WebGLSync.h"

#include "mozilla/dom/WebGL2RenderingContextBinding.h"

namespace mozilla {

WebGLSync::WebGLSync(WebGLContext* webgl):
    WebGLContextBoundObject(webgl)
{
    MOZ_CRASH("Not Implemented.");
}

WebGLSync::~WebGLSync()
{}

void
WebGLSync::Delete()
{
    MOZ_CRASH("Not Implemented.");
}

WebGLContext*
WebGLSync::GetParentObject() const
{
    MOZ_CRASH("Not Implemented.");
    return nullptr;
}

// -------------------------------------------------------------------------
// IMPLEMENT NS
JSObject*
WebGLSync::WrapObject(JSContext* cx)
{
    return dom::WebGLSyncBinding::Wrap(cx, this);
}

NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_0(WebGLSync)
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(WebGLSync, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(WebGLSync, Release);

} // namespace mozilla