Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: ash/content_support/gpu_support_impl.cc

Issue 138223004: Inject GPUDataManager support into ash to abstract a content dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/content_support/gpu_support_impl.h ('k') | ash/content_support/inject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
OLDNEW
« no previous file with comments | « ash/content_support/gpu_support_impl.h ('k') | ash/content_support/inject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698