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

Side by Side Diff: content/browser/renderer_host/gpu_message_filter.h

Issue 1547793004: Make gpu black list work again on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Execute todo, send IPC directly from gpu_benchmarking_extension.cc and fixes variable names. Created 4 years, 10 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_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 18 matching lines...) Expand all
29 29
30 private: 30 private:
31 friend class BrowserThread; 31 friend class BrowserThread;
32 friend class base::DeleteHelper<GpuMessageFilter>; 32 friend class base::DeleteHelper<GpuMessageFilter>;
33 33
34 ~GpuMessageFilter() override; 34 ~GpuMessageFilter() override;
35 35
36 // Message handlers called on the browser IO thread: 36 // Message handlers called on the browser IO thread:
37 void OnEstablishGpuChannel(CauseForGpuLaunch, 37 void OnEstablishGpuChannel(CauseForGpuLaunch,
38 IPC::Message* reply); 38 IPC::Message* reply);
39 void OnHasGpuProcess(IPC::Message* reply);
39 // Helper callbacks for the message handlers. 40 // Helper callbacks for the message handlers.
40 void EstablishChannelCallback(scoped_ptr<IPC::Message> reply, 41 void EstablishChannelCallback(scoped_ptr<IPC::Message> reply,
41 const IPC::ChannelHandle& channel, 42 const IPC::ChannelHandle& channel,
42 const gpu::GPUInfo& gpu_info); 43 const gpu::GPUInfo& gpu_info);
44 void GetGpuProcessHandlesCallback(
45 scoped_ptr<IPC::Message> reply,
46 const std::list<base::ProcessHandle>& handles);
43 47
44 int gpu_process_id_; 48 int gpu_process_id_;
45 int render_process_id_; 49 int render_process_id_;
46 50
47 base::WeakPtrFactory<GpuMessageFilter> weak_ptr_factory_; 51 base::WeakPtrFactory<GpuMessageFilter> weak_ptr_factory_;
48 52
49 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); 53 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter);
50 }; 54 };
51 55
52 } // namespace content 56 } // namespace content
53 57
54 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ 58 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private_unittest.cc ('k') | content/browser/renderer_host/gpu_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698