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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b095cd071f124b9d7635bf1b1c0ceae4687615b6 |
--- /dev/null |
+++ b/gpu/command_buffer/common/value_state.h |
@@ -0,0 +1,26 @@ |
+// 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 "gpu/gpu_export.h" |
+ |
+// From gl2/gl2ext.h. |
+#ifndef GL_MOUSE_POSITION_CHROMIUM |
+#define GL_MOUSE_POSITION_CHROMIUM 0x924C |
+#endif |
piman
2014/11/21 19:48:51
Why do you need this here?
orglofch
2014/11/21 22:04:12
I had thought there was dependency preventing gl2e
|
+ |
+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]; |
+}; |
+ |
+} // namespace gpu |
+ |
+#endif // GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_ |