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

Side by Side Diff: content/browser/gpu/gpu_feature_checker_impl.h

Issue 2666243002: Move GPUFeatureChecker to content layer (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/gpu/gpu_feature_checker_impl.cc » ('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 2017 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 #ifndef CONTENT_BROWSER_GPU_GPU_FEATURE_CHECKER_IMPL_H_
6 #define CONTENT_BROWSER_GPU_GPU_FEATURE_CHECKER_IMPL_H_
7
8 #include "base/callback.h"
9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h"
11 #include "content/public/browser/gpu_data_manager_observer.h"
12 #include "content/public/browser/gpu_feature_checker.h"
13 #include "gpu/config/gpu_feature_type.h"
14
15 namespace content {
16
17 class CONTENT_EXPORT GpuFeatureCheckerImpl
18 : public NON_EXPORTED_BASE(GpuFeatureChecker),
19 public GpuDataManagerObserver {
20 public:
21 GpuFeatureCheckerImpl(gpu::GpuFeatureType feature,
22 FeatureAvailableCallback callback);
23
24 // GpuFeatureChecker implementation.
25 void CheckGpuFeatureAvailability() override;
26
27 // GpuDataManagerObserver implementation.
28 void OnGpuInfoUpdate() override;
29
30 private:
31 ~GpuFeatureCheckerImpl() override;
32
33 gpu::GpuFeatureType feature_;
34 FeatureAvailableCallback callback_;
35
36 DISALLOW_COPY_AND_ASSIGN(GpuFeatureCheckerImpl);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_GPU_GPU_FEATURE_CHECKER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/gpu/gpu_feature_checker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698