Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/CHROMIUMSubscribeUniform.cpp

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "modules/webgl/CHROMIUMSubscribeUniform.h"
6
7 #include "modules/webgl/CHROMIUMValuebuffer.h"
8
9 namespace blink {
10
11 CHROMIUMSubscribeUniform::CHROMIUMSubscribeUniform(WebGLRenderingContextBase* co ntext)
12 : WebGLExtension(context)
13 {
14 context->extensionsUtil()->ensureExtensionEnabled("GL_CHROMIUM_subscribe_uni form");
15 }
16
17 CHROMIUMSubscribeUniform::~CHROMIUMSubscribeUniform()
18 {
19 }
20
21 WebGLExtensionName CHROMIUMSubscribeUniform::name() const
22 {
23 return CHROMIUMSubscribeUniformName;
24 }
25
26 CHROMIUMSubscribeUniform* CHROMIUMSubscribeUniform::create(WebGLRenderingContext Base* context)
27 {
28 return new CHROMIUMSubscribeUniform(context);
29 }
30
31 bool CHROMIUMSubscribeUniform::supported(WebGLRenderingContextBase* context)
32 {
33 return context->extensionsUtil()->supportsExtension("GL_CHROMIUM_subscribe_u niform");
34 }
35
36 const char* CHROMIUMSubscribeUniform::extensionName()
37 {
38 return "CHROMIUM_subscribe_uniform";
39 }
40
41 CHROMIUMValuebuffer* CHROMIUMSubscribeUniform::createValuebufferCHROMIUM()
42 {
43 WebGLExtensionScopedContext scoped(this);
44 if (scoped.isLost())
45 return nullptr;
46
47 return scoped.context()->createValuebufferCHROMIUM();
48 }
49
50 void CHROMIUMSubscribeUniform::deleteValuebufferCHROMIUM(CHROMIUMValuebuffer* va luebuffer)
51 {
52 WebGLExtensionScopedContext scoped(this);
53 if (scoped.isLost() || !valuebuffer)
54 return;
55
56 scoped.context()->deleteValuebufferCHROMIUM(valuebuffer);
57 }
58
59 GLboolean CHROMIUMSubscribeUniform::isValuebufferCHROMIUM(CHROMIUMValuebuffer* v aluebuffer)
60 {
61 WebGLExtensionScopedContext scoped(this);
62 if (scoped.isLost() || !valuebuffer)
63 return 0;
64
65 return scoped.context()->isValuebufferCHROMIUM(valuebuffer);
66 }
67
68 void CHROMIUMSubscribeUniform::bindValuebufferCHROMIUM(GLenum target, CHROMIUMVa luebuffer* valuebuffer)
69 {
70 WebGLExtensionScopedContext scoped(this);
71 if (scoped.isLost() || !valuebuffer)
72 return;
73
74 scoped.context()->bindValuebufferCHROMIUM(target, valuebuffer);
75 }
76
77 void CHROMIUMSubscribeUniform::subscribeValueCHROMIUM(GLenum target, GLenum subs cription)
78 {
79 WebGLExtensionScopedContext scoped(this);
80 if (scoped.isLost())
81 return;
82
83 scoped.context()->subscribeValueCHROMIUM(target, subscription);
84 }
85
86 void CHROMIUMSubscribeUniform::populateSubscribedValuesCHROMIUM(GLenum target)
87 {
88 WebGLExtensionScopedContext scoped(this);
89 if (scoped.isLost())
90 return;
91
92 scoped.context()->populateSubscribedValuesCHROMIUM(target);
93 }
94
95 void CHROMIUMSubscribeUniform::uniformValuebufferCHROMIUM(const WebGLUniformLoca tion* location, GLenum target, GLenum subscription)
96 {
97 WebGLExtensionScopedContext scoped(this);
98 if (scoped.isLost() || !location)
99 return;
100
101 scoped.context()->uniformValuebufferCHROMIUM(location, target, subscription) ;
102 }
103
104 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698