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

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

Issue 2801943002: gpu: Some code cleanups. (Closed)
Patch Set: . Created 3 years, 8 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/browser_gpu_channel_host_factory.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_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 private: 58 private:
59 struct CreateRequest; 59 struct CreateRequest;
60 class EstablishRequest; 60 class EstablishRequest;
61 61
62 BrowserGpuChannelHostFactory(); 62 BrowserGpuChannelHostFactory();
63 ~BrowserGpuChannelHostFactory() override; 63 ~BrowserGpuChannelHostFactory() override;
64 64
65 void GpuChannelEstablished(); 65 void GpuChannelEstablished();
66 66
67 static void AddFilterOnIO(int gpu_host_id,
68 scoped_refptr<IPC::MessageFilter> filter);
69 static void InitializeShaderDiskCacheOnIO(int gpu_client_id, 67 static void InitializeShaderDiskCacheOnIO(int gpu_client_id,
70 const base::FilePath& cache_dir); 68 const base::FilePath& cache_dir);
71 69
72 const int gpu_client_id_; 70 const int gpu_client_id_;
73 const uint64_t gpu_client_tracing_id_; 71 const uint64_t gpu_client_tracing_id_;
74 std::unique_ptr<base::WaitableEvent> shutdown_event_; 72 std::unique_ptr<base::WaitableEvent> shutdown_event_;
75 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; 73 scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
76 std::unique_ptr<BrowserGpuMemoryBufferManager> gpu_memory_buffer_manager_; 74 std::unique_ptr<BrowserGpuMemoryBufferManager> gpu_memory_buffer_manager_;
77 int gpu_host_id_; 75 int gpu_host_id_;
78 scoped_refptr<EstablishRequest> pending_request_; 76 scoped_refptr<EstablishRequest> pending_request_;
79 std::vector<gpu::GpuChannelEstablishedCallback> established_callbacks_; 77 std::vector<gpu::GpuChannelEstablishedCallback> established_callbacks_;
80 78
81 static BrowserGpuChannelHostFactory* instance_; 79 static BrowserGpuChannelHostFactory* instance_;
82 80
83 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); 81 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
84 }; 82 };
85 83
86 } // namespace content 84 } // namespace content
87 85
88 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 86 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698