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

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

Issue 5317007: Add flow control between renderer and GPU processes, and, on Mac OS X,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #endif 53 #endif
54 54
55 // IPC::Channel::Listener implementation: 55 // IPC::Channel::Listener implementation:
56 virtual void OnMessageReceived(const IPC::Message& msg); 56 virtual void OnMessageReceived(const IPC::Message& msg);
57 virtual void OnChannelConnected(int32 peer_pid); 57 virtual void OnChannelConnected(int32 peer_pid);
58 virtual void OnChannelError(); 58 virtual void OnChannelError();
59 59
60 // IPC::Message::Sender implementation: 60 // IPC::Message::Sender implementation:
61 virtual bool Send(IPC::Message* msg); 61 virtual bool Send(IPC::Message* msg);
62 62
63 #if defined(OS_MACOSX)
64 virtual void AcceleratedSurfaceBuffersSwapped(
65 int32 route_id, uint64 swap_buffers_count);
66 #endif
67
63 private: 68 private:
64 void OnControlMessageReceived(const IPC::Message& msg); 69 void OnControlMessageReceived(const IPC::Message& msg);
65 70
66 int GenerateRouteID(); 71 int GenerateRouteID();
67 72
68 // Message handlers. 73 // Message handlers.
69 void OnCreateViewCommandBuffer( 74 void OnCreateViewCommandBuffer(
70 gfx::NativeViewId view, 75 gfx::NativeViewId view,
71 int32 render_view_id, 76 int32 render_view_id,
72 const GPUCreateCommandBufferConfig& init_params, 77 const GPUCreateCommandBufferConfig& init_params,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; 109 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap;
105 StubMap stubs_; 110 StubMap stubs_;
106 #endif 111 #endif
107 112
108 bool log_messages_; // True if we should log sent and received messages. 113 bool log_messages_; // True if we should log sent and received messages.
109 114
110 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 115 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
111 }; 116 };
112 117
113 #endif // CHROME_GPU_GPU_CHANNEL_H_ 118 #endif // CHROME_GPU_GPU_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698