| Index: third_party/WebKit/Source/modules/webgl/CHROMIUMSubscribeUniform.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/CHROMIUMSubscribeUniform.cpp b/third_party/WebKit/Source/modules/webgl/CHROMIUMSubscribeUniform.cpp
|
| deleted file mode 100644
|
| index 6ced069042a378ea7b3d880006cd130fc9c287bf..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/modules/webgl/CHROMIUMSubscribeUniform.cpp
|
| +++ /dev/null
|
| @@ -1,104 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "modules/webgl/CHROMIUMSubscribeUniform.h"
|
| -
|
| -#include "modules/webgl/CHROMIUMValuebuffer.h"
|
| -
|
| -namespace blink {
|
| -
|
| -CHROMIUMSubscribeUniform::CHROMIUMSubscribeUniform(WebGLRenderingContextBase* context)
|
| - : WebGLExtension(context)
|
| -{
|
| - context->extensionsUtil()->ensureExtensionEnabled("GL_CHROMIUM_subscribe_uniform");
|
| -}
|
| -
|
| -CHROMIUMSubscribeUniform::~CHROMIUMSubscribeUniform()
|
| -{
|
| -}
|
| -
|
| -WebGLExtensionName CHROMIUMSubscribeUniform::name() const
|
| -{
|
| - return CHROMIUMSubscribeUniformName;
|
| -}
|
| -
|
| -CHROMIUMSubscribeUniform* CHROMIUMSubscribeUniform::create(WebGLRenderingContextBase* context)
|
| -{
|
| - return new CHROMIUMSubscribeUniform(context);
|
| -}
|
| -
|
| -bool CHROMIUMSubscribeUniform::supported(WebGLRenderingContextBase* context)
|
| -{
|
| - return context->extensionsUtil()->supportsExtension("GL_CHROMIUM_subscribe_uniform");
|
| -}
|
| -
|
| -const char* CHROMIUMSubscribeUniform::extensionName()
|
| -{
|
| - return "CHROMIUM_subscribe_uniform";
|
| -}
|
| -
|
| -CHROMIUMValuebuffer* CHROMIUMSubscribeUniform::createValuebufferCHROMIUM()
|
| -{
|
| - WebGLExtensionScopedContext scoped(this);
|
| - if (scoped.isLost())
|
| - return nullptr;
|
| -
|
| - return scoped.context()->createValuebufferCHROMIUM();
|
| -}
|
| -
|
| -void CHROMIUMSubscribeUniform::deleteValuebufferCHROMIUM(CHROMIUMValuebuffer* valuebuffer)
|
| -{
|
| - WebGLExtensionScopedContext scoped(this);
|
| - if (scoped.isLost() || !valuebuffer)
|
| - return;
|
| -
|
| - scoped.context()->deleteValuebufferCHROMIUM(valuebuffer);
|
| -}
|
| -
|
| -GLboolean CHROMIUMSubscribeUniform::isValuebufferCHROMIUM(CHROMIUMValuebuffer* valuebuffer)
|
| -{
|
| - WebGLExtensionScopedContext scoped(this);
|
| - if (scoped.isLost() || !valuebuffer)
|
| - return 0;
|
| -
|
| - return scoped.context()->isValuebufferCHROMIUM(valuebuffer);
|
| -}
|
| -
|
| -void CHROMIUMSubscribeUniform::bindValuebufferCHROMIUM(GLenum target, CHROMIUMValuebuffer* valuebuffer)
|
| -{
|
| - WebGLExtensionScopedContext scoped(this);
|
| - if (scoped.isLost() || !valuebuffer)
|
| - return;
|
| -
|
| - scoped.context()->bindValuebufferCHROMIUM(target, valuebuffer);
|
| -}
|
| -
|
| -void CHROMIUMSubscribeUniform::subscribeValueCHROMIUM(GLenum target, GLenum subscription)
|
| -{
|
| - WebGLExtensionScopedContext scoped(this);
|
| - if (scoped.isLost())
|
| - return;
|
| -
|
| - scoped.context()->subscribeValueCHROMIUM(target, subscription);
|
| -}
|
| -
|
| -void CHROMIUMSubscribeUniform::populateSubscribedValuesCHROMIUM(GLenum target)
|
| -{
|
| - WebGLExtensionScopedContext scoped(this);
|
| - if (scoped.isLost())
|
| - return;
|
| -
|
| - scoped.context()->populateSubscribedValuesCHROMIUM(target);
|
| -}
|
| -
|
| -void CHROMIUMSubscribeUniform::uniformValuebufferCHROMIUM(const WebGLUniformLocation* location, GLenum target, GLenum subscription)
|
| -{
|
| - WebGLExtensionScopedContext scoped(this);
|
| - if (scoped.isLost() || !location)
|
| - return;
|
| -
|
| - scoped.context()->uniformValuebufferCHROMIUM(location, target, subscription);
|
| -}
|
| -
|
| -} // namespace blink
|
|
|