Home | History | Annotate | Download | only in content_support
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "ash/content_support/gpu_support_impl.h"
      6 
      7 #include "content/public/browser/gpu_data_manager.h"
      8 #include "gpu/config/gpu_feature_type.h"
      9 
     10 namespace ash {
     11 
     12 GPUSupportImpl::GPUSupportImpl() {
     13 }
     14 
     15 GPUSupportImpl::~GPUSupportImpl() {
     16 }
     17 
     18 bool GPUSupportImpl::IsPanelFittingDisabled() const {
     19   return content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
     20       gpu::GPU_FEATURE_TYPE_PANEL_FITTING);
     21 }
     22 
     23 void GPUSupportImpl::DisableGpuWatchdog() {
     24   content::GpuDataManager::GetInstance()->DisableGpuWatchdog();
     25 }
     26 
     27 void GPUSupportImpl::GetGpuProcessHandles(
     28       const GetGpuProcessHandlesCallback& callback) const {
     29   content::GpuDataManager::GetInstance()->GetGpuProcessHandles(callback);
     30 }
     31 
     32 }  // namespace ash
     33