summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_create_command_buffer_config.h
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-11-01 12:19:54 +0000
committerIain Merrick <husky@google.com>2010-11-03 10:21:10 +0000
commit731df977c0511bca2206b5f333555b1205ff1f43 (patch)
tree0e750b949b3f00a1ac11fda25d3c2de512f2b465 /chrome/common/gpu_create_command_buffer_config.h
parent5add15e10e7bb80512f2c597ca57221314abe577 (diff)
downloadexternal_chromium-731df977c0511bca2206b5f333555b1205ff1f43.zip
external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.gz
external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.bz2
Merge Chromium at r63472 : Initial merge by git.
Change-Id: Ifb9ee821af006a5f2211e81471be93ae440a1f5a
Diffstat (limited to 'chrome/common/gpu_create_command_buffer_config.h')
-rw-r--r--chrome/common/gpu_create_command_buffer_config.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/common/gpu_create_command_buffer_config.h b/chrome/common/gpu_create_command_buffer_config.h
new file mode 100644
index 0000000..8a2525f
--- /dev/null
+++ b/chrome/common/gpu_create_command_buffer_config.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2010 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 CHROME_COMMON_GPU_CREATE_COMMAND_BUFFER_CONFIG_H_
+#define CHROME_COMMON_GPU_CREATE_COMMAND_BUFFER_CONFIG_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+// Parameters passed when initializing a GPU channel.
+struct GPUCreateCommandBufferConfig {
+ GPUCreateCommandBufferConfig() { }
+
+ GPUCreateCommandBufferConfig(
+ const std::string& _allowed_extensions,
+ const std::vector<int>& _attribs)
+ : allowed_extensions(_allowed_extensions),
+ attribs(_attribs) {
+ }
+
+ std::string allowed_extensions;
+ std::vector<int> attribs;
+};
+
+#endif // CHROME_COMMON_GPU_CREATE_COMMAND_BUFFER_CONFIG_H_