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

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

Issue 633843002: Replacing the OVERRIDE with override and FINAL with final in content/browser/[dom_storage|gamepad|… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 CONTENT_EXPORT static void RegisterGpuMainThreadFactory( 92 CONTENT_EXPORT static void RegisterGpuMainThreadFactory(
93 GpuMainThreadFactoryFunction create); 93 GpuMainThreadFactoryFunction create);
94 94
95 // Get the GPU process host for the GPU process with the given ID. Returns 95 // Get the GPU process host for the GPU process with the given ID. Returns
96 // null if the process no longer exists. 96 // null if the process no longer exists.
97 static GpuProcessHost* FromID(int host_id); 97 static GpuProcessHost* FromID(int host_id);
98 int host_id() const { return host_id_; } 98 int host_id() const { return host_id_; }
99 99
100 // IPC::Sender implementation. 100 // IPC::Sender implementation.
101 virtual bool Send(IPC::Message* msg) OVERRIDE; 101 virtual bool Send(IPC::Message* msg) override;
102 102
103 // Adds a message filter to the GpuProcessHost's channel. 103 // Adds a message filter to the GpuProcessHost's channel.
104 void AddFilter(IPC::MessageFilter* filter); 104 void AddFilter(IPC::MessageFilter* filter);
105 105
106 // Tells the GPU process to create a new channel for communication with a 106 // Tells the GPU process to create a new channel for communication with a
107 // client. Once the GPU process responds asynchronously with the IPC handle 107 // client. Once the GPU process responds asynchronously with the IPC handle
108 // and GPUInfo, we call the callback. 108 // and GPUInfo, we call the callback.
109 void EstablishGpuChannel(int client_id, 109 void EstablishGpuChannel(int client_id,
110 bool share_context, 110 bool share_context,
111 bool allow_future_sync_points, 111 bool allow_future_sync_points,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 GpuProcessHost(int host_id, GpuProcessKind kind); 150 GpuProcessHost(int host_id, GpuProcessKind kind);
151 virtual ~GpuProcessHost(); 151 virtual ~GpuProcessHost();
152 152
153 bool Init(); 153 bool Init();
154 154
155 // Post an IPC message to the UI shim's message handler on the UI thread. 155 // Post an IPC message to the UI shim's message handler on the UI thread.
156 void RouteOnUIThread(const IPC::Message& message); 156 void RouteOnUIThread(const IPC::Message& message);
157 157
158 // BrowserChildProcessHostDelegate implementation. 158 // BrowserChildProcessHostDelegate implementation.
159 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 159 virtual bool OnMessageReceived(const IPC::Message& message) override;
160 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 160 virtual void OnChannelConnected(int32 peer_pid) override;
161 virtual void OnProcessLaunched() OVERRIDE; 161 virtual void OnProcessLaunched() override;
162 virtual void OnProcessCrashed(int exit_code) OVERRIDE; 162 virtual void OnProcessCrashed(int exit_code) override;
163 163
164 // Message handlers. 164 // Message handlers.
165 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); 165 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info);
166 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); 166 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
167 void OnCommandBufferCreated(CreateCommandBufferResult result); 167 void OnCommandBufferCreated(CreateCommandBufferResult result);
168 void OnDestroyCommandBuffer(int32 surface_id); 168 void OnDestroyCommandBuffer(int32 surface_id);
169 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); 169 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
170 void OnDidCreateOffscreenContext(const GURL& url); 170 void OnDidCreateOffscreenContext(const GURL& url);
171 void OnDidLoseContext(bool offscreen, 171 void OnDidLoseContext(bool offscreen,
172 gpu::error::ContextLostReason reason, 172 gpu::error::ContextLostReason reason,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > 277 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> >
278 SurfaceRefMap; 278 SurfaceRefMap;
279 SurfaceRefMap surface_refs_; 279 SurfaceRefMap surface_refs_;
280 280
281 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 281 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
282 }; 282 };
283 283
284 } // namespace content 284 } // namespace content
285 285
286 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 286 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_memory_buffer_factory_host_impl.h ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698