| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/gpu/gpu_switching_list.h" | 5 #include "gpu/config/gpu_switching_list.h" |
| 6 | 6 |
| 7 #include "content/public/common/gpu_switching_option.h" | 7 #include "gpu/config/gpu_switching_option.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace gpu { |
| 10 | 10 |
| 11 GpuSwitchingList::GpuSwitchingList() | 11 GpuSwitchingList::GpuSwitchingList() |
| 12 : GpuControlList() { | 12 : GpuControlList() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 GpuSwitchingList::~GpuSwitchingList() { | 15 GpuSwitchingList::~GpuSwitchingList() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 GpuSwitchingList* GpuSwitchingList::Create() { | 19 GpuSwitchingList* GpuSwitchingList::Create() { |
| 20 GpuSwitchingList* list = new GpuSwitchingList(); | 20 GpuSwitchingList* list = new GpuSwitchingList(); |
| 21 list->AddSupportedFeature("force_integrated", | 21 list->AddSupportedFeature("force_integrated", |
| 22 GPU_SWITCHING_OPTION_FORCE_INTEGRATED); | 22 GPU_SWITCHING_OPTION_FORCE_INTEGRATED); |
| 23 list->AddSupportedFeature("force_discrete", | 23 list->AddSupportedFeature("force_discrete", |
| 24 GPU_SWITCHING_OPTION_FORCE_DISCRETE); | 24 GPU_SWITCHING_OPTION_FORCE_DISCRETE); |
| 25 return list; | 25 return list; |
| 26 } | 26 } |
| 27 | 27 |
| 28 } // namespace content | 28 } // namespace gpu |
| 29 | 29 |
| OLD | NEW |