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

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

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/common/typemaps.gni ('k') | gpu/command_buffer/common/value_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/value_state.h
diff --git a/gpu/command_buffer/common/value_state.h b/gpu/command_buffer/common/value_state.h
deleted file mode 100644
index ca7675fb08af520caa12c719e6ddc451b80d3734..0000000000000000000000000000000000000000
--- a/gpu/command_buffer/common/value_state.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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.
-
-#ifndef GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_
-#define GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_
-
-#include "base/containers/hash_tables.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "gpu/gpu_export.h"
-
-namespace gpu {
-
-// Used to maintain Valuebuffer state, exposed to browser to
-// support passing ValueStates via IPC.
-union GPU_EXPORT ValueState {
- float float_value[4];
- int int_value[4];
-};
-
-// Refcounted wrapper for a hash_map of subscription targets to ValueStates
-class GPU_EXPORT ValueStateMap : public base::RefCounted<ValueStateMap> {
- public:
- ValueStateMap();
-
- // Returns NULL if there is not ValueState for the target
- const ValueState* GetState(unsigned int target) const;
-
- void UpdateState(unsigned int target, const ValueState& state);
-
- protected:
- virtual ~ValueStateMap();
-
- private:
- friend class base::RefCounted<ValueStateMap>;
-
- typedef base::hash_map<unsigned int, ValueState> Map;
-
- Map state_map_;
-
- DISALLOW_COPY_AND_ASSIGN(ValueStateMap);
-};
-
-} // namespace gpu
-
-#endif // GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_
« no previous file with comments | « gpu/command_buffer/common/typemaps.gni ('k') | gpu/command_buffer/common/value_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698