15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "ash/content_support/gpu_support_impl.h"
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "content/public/browser/gpu_data_manager.h"
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "gpu/config/gpu_feature_type.h"
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace ash {
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)GPUSupportImpl::GPUSupportImpl() {
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)GPUSupportImpl::~GPUSupportImpl() {
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)bool GPUSupportImpl::IsPanelFittingDisabled() const {
195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  return content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)      gpu::GPU_FEATURE_TYPE_PANEL_FITTING);
215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)void GPUSupportImpl::DisableGpuWatchdog() {
245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  content::GpuDataManager::GetInstance()->DisableGpuWatchdog();
255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)void GPUSupportImpl::GetGpuProcessHandles(
285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)      const GetGpuProcessHandlesCallback& callback) const {
295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  content::GpuDataManager::GetInstance()->GetGpuProcessHandles(callback);
305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}  // namespace ash
33