OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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 "gpu/command_buffer/service/uniform_subscription_manager.h" |
| 6 |
| 7 namespace gpu { |
| 8 namespace gles2 { |
| 9 |
| 10 UniformSubscriptionManager::UniformSubscriptionManager() { |
| 11 } |
| 12 |
| 13 UniformSubscriptionManager::~UniformSubscriptionManager() { |
| 14 } |
| 15 |
| 16 void UniformSubscriptionManager::Destroy(bool have_context) { |
| 17 subscriptions_.clear(); |
| 18 } |
| 19 |
| 20 void UniformSubscriptionManager::AddSubscription(GLenum target, |
| 21 const GLchar* name) { |
| 22 subscriptions_[target] = name; |
| 23 } |
| 24 |
| 25 void UniformSubscriptionManager::RemoveSubscription(GLenum target) { |
| 26 subscriptions_.erase(target); |
| 27 } |
| 28 |
| 29 } // namespace gles2 |
| 30 } // namespace gpu |
OLD | NEW |