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

Side by Side Diff: content/browser/gpu/gpu_process_host.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
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>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 mojo::ScopedMessagePipeHandle interface_pipe); 101 mojo::ScopedMessagePipeHandle interface_pipe);
102 102
103 // Get the GPU process host for the GPU process with the given ID. Returns 103 // Get the GPU process host for the GPU process with the given ID. Returns
104 // null if the process no longer exists. 104 // null if the process no longer exists.
105 static GpuProcessHost* FromID(int host_id); 105 static GpuProcessHost* FromID(int host_id);
106 int host_id() const { return host_id_; } 106 int host_id() const { return host_id_; }
107 107
108 // IPC::Sender implementation. 108 // IPC::Sender implementation.
109 bool Send(IPC::Message* msg) override; 109 bool Send(IPC::Message* msg) override;
110 110
111 // Adds a message filter to the GpuProcessHost's channel.
112 void AddFilter(IPC::MessageFilter* filter);
113
114 // Tells the GPU process to create a new channel for communication with a 111 // Tells the GPU process to create a new channel for communication with a
115 // client. Once the GPU process responds asynchronously with the IPC handle 112 // client. Once the GPU process responds asynchronously with the IPC handle
116 // and GPUInfo, we call the callback. 113 // and GPUInfo, we call the callback.
117 void EstablishGpuChannel(int client_id, 114 void EstablishGpuChannel(int client_id,
118 uint64_t client_tracing_id, 115 uint64_t client_tracing_id,
119 bool preempts, 116 bool preempts,
120 bool allow_view_command_buffers, 117 bool allow_view_command_buffers,
121 bool allow_real_time_streams, 118 bool allow_real_time_streams,
122 const EstablishChannelCallback& callback); 119 const EstablishChannelCallback& callback);
123 120
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 gpu::GpuProcessHostActivityFlags activity_flags_; 285 gpu::GpuProcessHostActivityFlags activity_flags_;
289 286
290 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 287 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
291 288
292 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 289 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
293 }; 290 };
294 291
295 } // namespace content 292 } // namespace content
296 293
297 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 294 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698