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

Side by Side Diff: chrome/gpu/gpu_channel.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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
« no previous file with comments | « chrome/common/webmessageportchannel_impl.cc ('k') | chrome/gpu/gpu_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_CHANNEL_H_ 5 #ifndef CHROME_GPU_GPU_CHANNEL_H_
6 #define CHROME_GPU_GPU_CHANNEL_H_ 6 #define CHROME_GPU_GPU_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 39
40 #if defined(OS_POSIX) 40 #if defined(OS_POSIX)
41 int GetRendererFileDescriptor(); 41 int GetRendererFileDescriptor();
42 #endif // defined(OS_POSIX) 42 #endif // defined(OS_POSIX)
43 43
44 base::ProcessHandle renderer_handle() const { 44 base::ProcessHandle renderer_handle() const {
45 return renderer_process_.handle(); 45 return renderer_process_.handle();
46 } 46 }
47 47
48 // IPC::Channel::Listener implementation: 48 // IPC::Channel::Listener implementation:
49 virtual void OnMessageReceived(const IPC::Message& msg); 49 virtual bool OnMessageReceived(const IPC::Message& msg);
50 virtual void OnChannelConnected(int32 peer_pid); 50 virtual void OnChannelConnected(int32 peer_pid);
51 virtual void OnChannelError(); 51 virtual void OnChannelError();
52 52
53 // IPC::Message::Sender implementation: 53 // IPC::Message::Sender implementation:
54 virtual bool Send(IPC::Message* msg); 54 virtual bool Send(IPC::Message* msg);
55 55
56 #if defined(OS_MACOSX) 56 #if defined(OS_MACOSX)
57 virtual void AcceleratedSurfaceBuffersSwapped( 57 virtual void AcceleratedSurfaceBuffersSwapped(
58 int32 route_id, uint64 swap_buffers_count); 58 int32 route_id, uint64 swap_buffers_count);
59 void DidDestroySurface(int32 renderer_route_id); 59 void DidDestroySurface(int32 renderer_route_id);
60 60
61 bool IsRenderViewGone(int32 renderer_route_id); 61 bool IsRenderViewGone(int32 renderer_route_id);
62 #endif 62 #endif
63 63
64 private: 64 private:
65 void OnControlMessageReceived(const IPC::Message& msg); 65 bool OnControlMessageReceived(const IPC::Message& msg);
66 66
67 int GenerateRouteID(); 67 int GenerateRouteID();
68 68
69 // Message handlers. 69 // Message handlers.
70 void OnCreateViewCommandBuffer( 70 void OnCreateViewCommandBuffer(
71 gfx::NativeViewId view, 71 gfx::NativeViewId view,
72 int32 render_view_id, 72 int32 render_view_id,
73 const GPUCreateCommandBufferConfig& init_params, 73 const GPUCreateCommandBufferConfig& init_params,
74 int32* route_id); 74 int32* route_id);
75 void OnCreateOffscreenCommandBuffer( 75 void OnCreateOffscreenCommandBuffer(
(...skipping 27 matching lines...) Expand all
103 std::set<int32> destroyed_renderer_routes_; 103 std::set<int32> destroyed_renderer_routes_;
104 #endif // defined (OS_MACOSX) 104 #endif // defined (OS_MACOSX)
105 #endif // defined (ENABLE_GPU) 105 #endif // defined (ENABLE_GPU)
106 106
107 bool log_messages_; // True if we should log sent and received messages. 107 bool log_messages_; // True if we should log sent and received messages.
108 108
109 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 109 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
110 }; 110 };
111 111
112 #endif // CHROME_GPU_GPU_CHANNEL_H_ 112 #endif // CHROME_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « chrome/common/webmessageportchannel_impl.cc ('k') | chrome/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698