summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_create_command_buffer_config.h
blob: 0cb217ab3e5a5160e783b32c89f8f6d4cb8f49dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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);

  ~GPUCreateCommandBufferConfig();

  std::string allowed_extensions;
  std::vector<int> attribs;
};

#endif  // CHROME_COMMON_GPU_CREATE_COMMAND_BUFFER_CONFIG_H_