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

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

Issue 2915513002: Replace deprecated base::NonThreadSafe in content/browser/gpu in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | content/browser/gpu/gpu_process_host.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <queue> 12 #include <queue>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/containers/hash_tables.h" 17 #include "base/containers/hash_tables.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/threading/non_thread_safe.h" 20 #include "base/sequence_checker.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/public/browser/browser_child_process_host_delegate.h" 24 #include "content/public/browser/browser_child_process_host_delegate.h"
25 #include "content/public/browser/gpu_data_manager.h" 25 #include "content/public/browser/gpu_data_manager.h"
26 #include "gpu/command_buffer/common/activity_flags.h" 26 #include "gpu/command_buffer/common/activity_flags.h"
27 #include "gpu/command_buffer/common/constants.h" 27 #include "gpu/command_buffer/common/constants.h"
28 #include "gpu/config/gpu_feature_info.h" 28 #include "gpu/config/gpu_feature_info.h"
29 #include "gpu/config/gpu_info.h" 29 #include "gpu/config/gpu_info.h"
30 #include "gpu/ipc/common/surface_handle.h" 30 #include "gpu/ipc/common/surface_handle.h"
(...skipping 19 matching lines...) Expand all
50 struct GpuPreferences; 50 struct GpuPreferences;
51 class ShaderDiskCache; 51 class ShaderDiskCache;
52 struct SyncToken; 52 struct SyncToken;
53 } 53 }
54 54
55 namespace content { 55 namespace content {
56 class BrowserChildProcessHostImpl; 56 class BrowserChildProcessHostImpl;
57 57
58 class GpuProcessHost : public BrowserChildProcessHostDelegate, 58 class GpuProcessHost : public BrowserChildProcessHostDelegate,
59 public IPC::Sender, 59 public IPC::Sender,
60 public ui::mojom::GpuHost, 60 public ui::mojom::GpuHost {
61 public base::NonThreadSafe {
62 public: 61 public:
63 enum GpuProcessKind { 62 enum GpuProcessKind {
64 GPU_PROCESS_KIND_UNSANDBOXED, 63 GPU_PROCESS_KIND_UNSANDBOXED,
65 GPU_PROCESS_KIND_SANDBOXED, 64 GPU_PROCESS_KIND_SANDBOXED,
66 GPU_PROCESS_KIND_COUNT 65 GPU_PROCESS_KIND_COUNT
67 }; 66 };
68 67
69 enum class EstablishChannelStatus { 68 enum class EstablishChannelStatus {
70 GPU_ACCESS_DENIED, // GPU access was not allowed. 69 GPU_ACCESS_DENIED, // GPU access was not allowed.
71 GPU_HOST_INVALID, // Request failed because the gpu host became invalid 70 GPU_HOST_INVALID, // Request failed because the gpu host became invalid
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 ClientIdToShaderCacheMap; 284 ClientIdToShaderCacheMap;
286 ClientIdToShaderCacheMap client_id_to_shader_cache_; 285 ClientIdToShaderCacheMap client_id_to_shader_cache_;
287 286
288 std::string shader_prefix_key_info_; 287 std::string shader_prefix_key_info_;
289 288
290 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_; 289 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_;
291 ui::mojom::GpuServicePtr gpu_service_ptr_; 290 ui::mojom::GpuServicePtr gpu_service_ptr_;
292 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_; 291 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_;
293 gpu::GpuProcessHostActivityFlags activity_flags_; 292 gpu::GpuProcessHostActivityFlags activity_flags_;
294 293
294 SEQUENCE_CHECKER(sequence_checker_);
295
295 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 296 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
296 297
297 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
298 }; 299 };
299 300
300 } // namespace content 301 } // namespace content
301 302
302 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698