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

Side by Side Diff: content/common/child_process_host_impl.h

Issue 1414793018: Revert of Converted video frame and image callbacks to use new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "ui/gfx/gpu_memory_buffer.h" 21 #include "ui/gfx/gpu_memory_buffer.h"
22 22
23 namespace base { 23 namespace base {
24 class FilePath; 24 class FilePath;
25 } 25 }
26 26
27 namespace IPC { 27 namespace IPC {
28 class MessageFilter; 28 class MessageFilter;
29 } 29 }
30 30
31 namespace gpu {
32 struct SyncToken;
33 }
34
35 namespace content { 31 namespace content {
36 class ChildProcessHostDelegate; 32 class ChildProcessHostDelegate;
37 33
38 // Provides common functionality for hosting a child process and processing IPC 34 // Provides common functionality for hosting a child process and processing IPC
39 // messages between the host and the child process. Users are responsible 35 // messages between the host and the child process. Users are responsible
40 // for the actual launching and terminating of the child processes. 36 // for the actual launching and terminating of the child processes.
41 class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost, 37 class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
42 public IPC::Listener { 38 public IPC::Listener {
43 public: 39 public:
44 ~ChildProcessHostImpl() override; 40 ~ChildProcessHostImpl() override;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void OnShutdownRequest(); 94 void OnShutdownRequest();
99 void OnAllocateSharedMemory(uint32 buffer_size, 95 void OnAllocateSharedMemory(uint32 buffer_size,
100 base::SharedMemoryHandle* handle); 96 base::SharedMemoryHandle* handle);
101 void OnAllocateGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 97 void OnAllocateGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
102 uint32 width, 98 uint32 width,
103 uint32 height, 99 uint32 height,
104 gfx::BufferFormat format, 100 gfx::BufferFormat format,
105 gfx::BufferUsage usage, 101 gfx::BufferUsage usage,
106 gfx::GpuMemoryBufferHandle* handle); 102 gfx::GpuMemoryBufferHandle* handle);
107 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 103 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
108 const gpu::SyncToken& sync_token); 104 uint32 sync_point);
109 105
110 ChildProcessHostDelegate* delegate_; 106 ChildProcessHostDelegate* delegate_;
111 base::Process peer_process_; 107 base::Process peer_process_;
112 bool opening_channel_; // True while we're waiting the channel to be opened. 108 bool opening_channel_; // True while we're waiting the channel to be opened.
113 scoped_ptr<IPC::Channel> channel_; 109 scoped_ptr<IPC::Channel> channel_;
114 std::string channel_id_; 110 std::string channel_id_;
115 111
116 // Holds all the IPC message filters. Since this object lives on the IO 112 // Holds all the IPC message filters. Since this object lives on the IO
117 // thread, we don't have a IPC::ChannelProxy and so we manage filters 113 // thread, we don't have a IPC::ChannelProxy and so we manage filters
118 // manually. 114 // manually.
119 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 115 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
120 116
121 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); 117 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl);
122 }; 118 };
123 119
124 } // namespace content 120 } // namespace content
125 121
126 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 122 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698