OLD | NEW |
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 #include <vector> | 10 #include <vector> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void OnRegisterStreamTextureProxy( | 150 void OnRegisterStreamTextureProxy( |
151 int32 stream_id, const gfx::Size& initial_size, int32* route_id); | 151 int32 stream_id, const gfx::Size& initial_size, int32* route_id); |
152 | 152 |
153 // Create a java surface texture object and send it to the renderer process | 153 // Create a java surface texture object and send it to the renderer process |
154 // through binder thread. | 154 // through binder thread. |
155 void OnEstablishStreamTexture( | 155 void OnEstablishStreamTexture( |
156 int32 stream_id, content::SurfaceTexturePeer::SurfaceTextureTarget type, | 156 int32 stream_id, content::SurfaceTexturePeer::SurfaceTextureTarget type, |
157 int32 primary_id, int32 secondary_id); | 157 int32 primary_id, int32 secondary_id); |
158 #endif | 158 #endif |
159 | 159 |
| 160 // Collect rendering stats. |
| 161 void OnCollectRenderingStats(int32 surface_id, IPC::Message* reply_message); |
| 162 |
160 // The lifetime of objects of this class is managed by a GpuChannelManager. | 163 // The lifetime of objects of this class is managed by a GpuChannelManager. |
161 // The GpuChannelManager destroy all the GpuChannels that they own when they | 164 // The GpuChannelManager destroy all the GpuChannels that they own when they |
162 // are destroyed. So a raw pointer is safe. | 165 // are destroyed. So a raw pointer is safe. |
163 GpuChannelManager* gpu_channel_manager_; | 166 GpuChannelManager* gpu_channel_manager_; |
164 | 167 |
165 scoped_ptr<IPC::SyncChannel> channel_; | 168 scoped_ptr<IPC::SyncChannel> channel_; |
166 | 169 |
167 // Number of routed messages for pending processing on a stub. | 170 // Number of routed messages for pending processing on a stub. |
168 scoped_refptr<gpu::RefCountedCounter> unprocessed_messages_; | 171 scoped_refptr<gpu::RefCountedCounter> unprocessed_messages_; |
169 | 172 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 #if defined(OS_ANDROID) | 207 #if defined(OS_ANDROID) |
205 scoped_ptr<content::StreamTextureManagerAndroid> stream_texture_manager_; | 208 scoped_ptr<content::StreamTextureManagerAndroid> stream_texture_manager_; |
206 #endif | 209 #endif |
207 | 210 |
208 base::WeakPtrFactory<GpuChannel> weak_factory_; | 211 base::WeakPtrFactory<GpuChannel> weak_factory_; |
209 | 212 |
210 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 213 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
211 }; | 214 }; |
212 | 215 |
213 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 216 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |