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

Unified Diff: gpu/command_buffer/common/value_state.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « gpu/command_buffer/common/value_state.h ('k') | gpu/command_buffer/service/context_group.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/value_state.cc
diff --git a/gpu/command_buffer/common/value_state.cc b/gpu/command_buffer/common/value_state.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d4dcdc22665ee43468bf97a76b98e664a9e5c8bd
--- /dev/null
+++ b/gpu/command_buffer/common/value_state.cc
@@ -0,0 +1,24 @@
+// 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/common/value_state.h"
+
+namespace gpu {
+
+ValueStateMap::ValueStateMap() {
+}
+
+ValueStateMap::~ValueStateMap() {
+}
+
+const ValueState* ValueStateMap::GetState(unsigned int target) const {
+ Map::const_iterator it = state_map_.find(target);
+ return it != state_map_.end() ? &it->second : NULL;
+}
+
+void ValueStateMap::UpdateState(unsigned int target, const ValueState& state) {
+ state_map_[target] = state;
+}
+
+} // namespace gpu
« no previous file with comments | « gpu/command_buffer/common/value_state.h ('k') | gpu/command_buffer/service/context_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698