summaryrefslogtreecommitdiffstats
path: root/gpu/config/gpu_switching_list.cc
blob: b87dfb2e3f4d2fed3aeeeaace8623c8f0f1316d6 (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
26
27
28
29
// Copyright (c) 2013 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/config/gpu_switching_list.h"

#include "gpu/config/gpu_switching_option.h"

namespace gpu {

GpuSwitchingList::GpuSwitchingList()
    : GpuControlList() {
}

GpuSwitchingList::~GpuSwitchingList() {
}

// static
GpuSwitchingList* GpuSwitchingList::Create() {
  GpuSwitchingList* list = new GpuSwitchingList();
  list->AddSupportedFeature("force_integrated",
                            GPU_SWITCHING_OPTION_FORCE_INTEGRATED);
  list->AddSupportedFeature("force_discrete",
                            GPU_SWITCHING_OPTION_FORCE_DISCRETE);
  return list;
}

}  // namespace gpu