| 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_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 7 | 7 |
| 8 // This class lives on the UI thread and supports classes like the | 8 // This class lives on the UI thread and supports classes like the |
| 9 // BackingStoreProxy, which must live on the UI thread. The IO thread | 9 // BackingStoreProxy, which must live on the UI thread. The IO thread |
| 10 // portion of this class, the GpuProcessHost, is responsible for | 10 // portion of this class, the GpuProcessHost, is responsible for |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 // Destroy all remaining GpuProcessHostUIShims. | 65 // Destroy all remaining GpuProcessHostUIShims. |
| 66 CONTENT_EXPORT static void DestroyAll(); | 66 CONTENT_EXPORT static void DestroyAll(); |
| 67 | 67 |
| 68 CONTENT_EXPORT static GpuProcessHostUIShim* FromID(int host_id); | 68 CONTENT_EXPORT static GpuProcessHostUIShim* FromID(int host_id); |
| 69 | 69 |
| 70 // Get a GpuProcessHostUIShim instance; it doesn't matter which one. | 70 // Get a GpuProcessHostUIShim instance; it doesn't matter which one. |
| 71 // Return NULL if none has been created. | 71 // Return NULL if none has been created. |
| 72 CONTENT_EXPORT static GpuProcessHostUIShim* GetOneInstance(); | 72 CONTENT_EXPORT static GpuProcessHostUIShim* GetOneInstance(); |
| 73 | 73 |
| 74 #if defined(OS_ANDROID) |
| 75 void DestroyingVideoSurface(int surface_id, const base::Closure& done_cb); |
| 76 #endif |
| 77 |
| 74 // Stops the GPU process. | 78 // Stops the GPU process. |
| 75 void StopGpuProcess(const base::Closure& callback); | 79 void StopGpuProcess(const base::Closure& callback); |
| 76 | 80 |
| 77 // IPC::Sender implementation. | 81 // IPC::Sender implementation. |
| 78 bool Send(IPC::Message* msg) override; | 82 bool Send(IPC::Message* msg) override; |
| 79 | 83 |
| 80 // IPC::Listener implementation. | 84 // IPC::Listener implementation. |
| 81 // The GpuProcessHost causes this to be called on the UI thread to | 85 // The GpuProcessHost causes this to be called on the UI thread to |
| 82 // dispatch the incoming messages from the GPU process, which are | 86 // dispatch the incoming messages from the GPU process, which are |
| 83 // actually received on the IO thread. | 87 // actually received on the IO thread. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 109 void OnRemoveSubscription(int32_t process_id, unsigned int target); | 113 void OnRemoveSubscription(int32_t process_id, unsigned int target); |
| 110 | 114 |
| 111 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. | 115 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
| 112 int host_id_; | 116 int host_id_; |
| 113 base::Closure close_callback_; | 117 base::Closure close_callback_; |
| 114 }; | 118 }; |
| 115 | 119 |
| 116 } // namespace content | 120 } // namespace content |
| 117 | 121 |
| 118 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 122 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
| OLD | NEW |