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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698