| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_GPU_CHANNEL_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ |
| 6 #define CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 kUnconnected, | 35 kUnconnected, |
| 36 // Ready to use. | 36 // Ready to use. |
| 37 kConnected, | 37 kConnected, |
| 38 // An error caused the host to become disconnected. Recreate channel to | 38 // An error caused the host to become disconnected. Recreate channel to |
| 39 // reestablish connection. | 39 // reestablish connection. |
| 40 kLost | 40 kLost |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // Called on the render thread | 43 // Called on the render thread |
| 44 GpuChannelHost(); | 44 GpuChannelHost(); |
| 45 ~GpuChannelHost(); | 45 virtual ~GpuChannelHost(); |
| 46 | 46 |
| 47 // Connect to GPU process channel. | 47 // Connect to GPU process channel. |
| 48 void Connect(const IPC::ChannelHandle& channel_handle, | 48 void Connect(const IPC::ChannelHandle& channel_handle, |
| 49 base::ProcessHandle renderer_process_for_gpu); | 49 base::ProcessHandle renderer_process_for_gpu); |
| 50 | 50 |
| 51 State state() const { return state_; } | 51 State state() const { return state_; } |
| 52 | 52 |
| 53 // Change state to kLost. | 53 // Change state to kLost. |
| 54 void SetStateLost(); | 54 void SetStateLost(); |
| 55 | 55 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; | 114 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; |
| 115 | 115 |
| 116 // This is a MessageFilter to intercept IPC messages related to transport | 116 // This is a MessageFilter to intercept IPC messages related to transport |
| 117 // textures. These messages are routed to TransportTextureHost. | 117 // textures. These messages are routed to TransportTextureHost. |
| 118 scoped_refptr<TransportTextureService> transport_texture_service_; | 118 scoped_refptr<TransportTextureService> transport_texture_service_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 120 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 #endif // CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ | 123 #endif // CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ |
| OLD | NEW |