| 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 | 10 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 #if defined(OS_ANDROID) | 171 #if defined(OS_ANDROID) |
| 172 // Register the StreamTextureProxy class with the gpu process so that all | 172 // Register the StreamTextureProxy class with the gpu process so that all |
| 173 // the callbacks will be correctly forwarded to the renderer. | 173 // the callbacks will be correctly forwarded to the renderer. |
| 174 void OnRegisterStreamTextureProxy( | 174 void OnRegisterStreamTextureProxy( |
| 175 int32 stream_id, const gfx::Size& initial_size, int32* route_id); | 175 int32 stream_id, const gfx::Size& initial_size, int32* route_id); |
| 176 | 176 |
| 177 // Create a java surface texture object and send it to the renderer process | 177 // Create a java surface texture object and send it to the renderer process |
| 178 // through binder thread. | 178 // through binder thread. |
| 179 void OnEstablishStreamTexture( | 179 void OnEstablishStreamTexture( |
| 180 int32 stream_id, SurfaceTexturePeer::SurfaceTextureTarget type, | 180 int32 stream_id, int32 primary_id, int32 secondary_id); |
| 181 int32 primary_id, int32 secondary_id); | |
| 182 #endif | 181 #endif |
| 183 | 182 |
| 184 // Collect rendering stats. | 183 // Collect rendering stats. |
| 185 void OnCollectRenderingStatsForSurface( | 184 void OnCollectRenderingStatsForSurface( |
| 186 int32 surface_id, GpuRenderingStats* stats); | 185 int32 surface_id, GpuRenderingStats* stats); |
| 187 | 186 |
| 188 // Decrement the count of unhandled IPC messages and defer preemption. | 187 // Decrement the count of unhandled IPC messages and defer preemption. |
| 189 void MessageProcessed(); | 188 void MessageProcessed(); |
| 190 | 189 |
| 191 // The lifetime of objects of this class is managed by a GpuChannelManager. | 190 // The lifetime of objects of this class is managed by a GpuChannelManager. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 245 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
| 247 | 246 |
| 248 size_t num_stubs_descheduled_; | 247 size_t num_stubs_descheduled_; |
| 249 | 248 |
| 250 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 249 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 251 }; | 250 }; |
| 252 | 251 |
| 253 } // namespace content | 252 } // namespace content |
| 254 | 253 |
| 255 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 254 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |