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

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

Issue 2715563002: Moving SwiftShader from component to bundled library (Closed)
Patch Set: Update past extension test fixes Created 3 years, 9 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_data_manager_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
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 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/files/file_path.h"
16 #include "base/logging.h" 15 #include "base/logging.h"
17 #include "base/macros.h" 16 #include "base/macros.h"
18 #include "base/memory/singleton.h" 17 #include "base/memory/singleton.h"
19 #include "base/process/kill.h" 18 #include "base/process/kill.h"
20 #include "base/synchronization/lock.h" 19 #include "base/synchronization/lock.h"
21 #include "base/time/time.h" 20 #include "base/time/time.h"
22 #include "base/values.h" 21 #include "base/values.h"
23 #include "content/public/browser/gpu_data_manager.h" 22 #include "content/public/browser/gpu_data_manager.h"
24 #include "content/public/common/three_d_api_types.h" 23 #include "content/public/common/three_d_api_types.h"
25 #include "gpu/config/gpu_feature_info.h" 24 #include "gpu/config/gpu_feature_info.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool IsWebGLEnabled() const override; 72 bool IsWebGLEnabled() const override;
74 gpu::GPUInfo GetGPUInfo() const override; 73 gpu::GPUInfo GetGPUInfo() const override;
75 void GetGpuProcessHandles( 74 void GetGpuProcessHandles(
76 const GetGpuProcessHandlesCallback& callback) const override; 75 const GetGpuProcessHandlesCallback& callback) const override;
77 bool GpuAccessAllowed(std::string* reason) const override; 76 bool GpuAccessAllowed(std::string* reason) const override;
78 void RequestCompleteGpuInfoIfNeeded() override; 77 void RequestCompleteGpuInfoIfNeeded() override;
79 bool IsEssentialGpuInfoAvailable() const override; 78 bool IsEssentialGpuInfoAvailable() const override;
80 bool IsCompleteGpuInfoAvailable() const override; 79 bool IsCompleteGpuInfoAvailable() const override;
81 void RequestVideoMemoryUsageStatsUpdate() const override; 80 void RequestVideoMemoryUsageStatsUpdate() const override;
82 bool ShouldUseSwiftShader() const override; 81 bool ShouldUseSwiftShader() const override;
83 void RegisterSwiftShaderPath(const base::FilePath& path) override;
84 // TODO(kbr): the threading model for the GpuDataManagerObservers is 82 // TODO(kbr): the threading model for the GpuDataManagerObservers is
85 // not well defined, and it's impossible for callers to correctly 83 // not well defined, and it's impossible for callers to correctly
86 // delete observers from anywhere except in one of the observer's 84 // delete observers from anywhere except in one of the observer's
87 // notification methods. Observer addition and removal, and their 85 // notification methods. Observer addition and removal, and their
88 // callbacks, should probably be required to occur on the UI thread. 86 // callbacks, should probably be required to occur on the UI thread.
89 void AddObserver(GpuDataManagerObserver* observer) override; 87 void AddObserver(GpuDataManagerObserver* observer) override;
90 void RemoveObserver(GpuDataManagerObserver* observer) override; 88 void RemoveObserver(GpuDataManagerObserver* observer) override;
91 void UnblockDomainFrom3DAPIs(const GURL& url) override; 89 void UnblockDomainFrom3DAPIs(const GURL& url) override;
92 void SetGLStrings(const std::string& gl_vendor, 90 void SetGLStrings(const std::string& gl_vendor,
93 const std::string& gl_renderer, 91 const std::string& gl_renderer,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 225
228 mutable base::Lock lock_; 226 mutable base::Lock lock_;
229 std::unique_ptr<GpuDataManagerImplPrivate> private_; 227 std::unique_ptr<GpuDataManagerImplPrivate> private_;
230 228
231 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 229 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
232 }; 230 };
233 231
234 } // namespace content 232 } // namespace content
235 233
236 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 234 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698