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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 195583003: Add initial GpuMemoryBufferSurfaceTexture implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 | Annotate | Revision Log
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_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Returns the name of the associated IPC channel. 70 // Returns the name of the associated IPC channel.
71 std::string GetChannelName(); 71 std::string GetChannelName();
72 72
73 #if defined(OS_POSIX) 73 #if defined(OS_POSIX)
74 int TakeRendererFileDescriptor(); 74 int TakeRendererFileDescriptor();
75 #endif // defined(OS_POSIX) 75 #endif // defined(OS_POSIX)
76 76
77 base::ProcessId renderer_pid() const { return channel_->peer_pid(); } 77 base::ProcessId renderer_pid() const { return channel_->peer_pid(); }
78 78
79 int client_id() const { return client_id_; }
80
79 scoped_refptr<base::MessageLoopProxy> io_message_loop() const { 81 scoped_refptr<base::MessageLoopProxy> io_message_loop() const {
80 return io_message_loop_; 82 return io_message_loop_;
81 } 83 }
82 84
83 // IPC::Listener implementation: 85 // IPC::Listener implementation:
84 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 86 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
85 virtual void OnChannelError() OVERRIDE; 87 virtual void OnChannelError() OVERRIDE;
86 88
87 // IPC::Sender implementation: 89 // IPC::Sender implementation:
88 virtual bool Send(IPC::Message* msg) OVERRIDE; 90 virtual bool Send(IPC::Message* msg) OVERRIDE;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_; 234 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_;
233 235
234 size_t num_stubs_descheduled_; 236 size_t num_stubs_descheduled_;
235 237
236 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 238 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
237 }; 239 };
238 240
239 } // namespace content 241 } // namespace content
240 242
241 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 243 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698