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

Unified Diff: gpu/command_buffer/service/uniform_subscription_manager.cc

Issue 659903002: Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/uniform_subscription_manager.cc
diff --git a/gpu/command_buffer/service/uniform_subscription_manager.cc b/gpu/command_buffer/service/uniform_subscription_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3e942cb4c70f72ce0a83e527e039e233868776fa
--- /dev/null
+++ b/gpu/command_buffer/service/uniform_subscription_manager.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 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 "gpu/command_buffer/service/uniform_subscription_manager.h"
+
+namespace gpu {
+namespace gles2 {
+
+UniformSubscriptionManager::UniformSubscriptionManager() {
+}
+
+UniformSubscriptionManager::~UniformSubscriptionManager() {
+}
+
+void UniformSubscriptionManager::Destroy(bool have_context) {
+ subscriptions_.clear();
+}
+
+void UniformSubscriptionManager::AddSubscription(GLenum target,
+ const GLchar* name) {
+ subscriptions_[target] = name;
+}
+
+void UniformSubscriptionManager::RemoveSubscription(GLenum target) {
+ subscriptions_.erase(target);
+}
+
+} // namespace gles2
+} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698