| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This class lives on the UI thread and supports classes like the | 9 // This class lives on the UI thread and supports classes like the |
| 10 // BackingStoreProxy, which must live on the UI thread. The IO thread | 10 // BackingStoreProxy, which must live on the UI thread. The IO thread |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 private: | 76 private: |
| 77 explicit GpuProcessHostUIShim(int host_id); | 77 explicit GpuProcessHostUIShim(int host_id); |
| 78 virtual ~GpuProcessHostUIShim(); | 78 virtual ~GpuProcessHostUIShim(); |
| 79 | 79 |
| 80 // Message handlers. | 80 // Message handlers. |
| 81 bool OnControlMessageReceived(const IPC::Message& message); | 81 bool OnControlMessageReceived(const IPC::Message& message); |
| 82 | 82 |
| 83 void OnLogMessage(int level, const std::string& header, | 83 void OnLogMessage(int level, const std::string& header, |
| 84 const std::string& message); | 84 const std::string& message); |
| 85 #if defined(TOOLKIT_USES_GTK) || defined(OS_WIN) | 85 #if defined(TOOLKIT_USES_GTK) || defined(OS_WIN) |
| 86 void OnResizeView(int32 client_id, | 86 void OnResizeView(int32 surface_id, |
| 87 int32 render_view_id, | |
| 88 int32 route_id, | 87 int32 route_id, |
| 89 gfx::Size size); | 88 gfx::Size size); |
| 90 #endif | 89 #endif |
| 91 | 90 |
| 92 void OnGraphicsInfoCollected(const content::GPUInfo& gpu_info); | 91 void OnGraphicsInfoCollected(const content::GPUInfo& gpu_info); |
| 93 | 92 |
| 94 void OnAcceleratedSurfaceBuffersSwapped( | 93 void OnAcceleratedSurfaceBuffersSwapped( |
| 95 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 94 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
| 96 void OnAcceleratedSurfacePostSubBuffer( | 95 void OnAcceleratedSurfacePostSubBuffer( |
| 97 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); | 96 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); |
| 98 | 97 |
| 99 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 98 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 100 void OnAcceleratedSurfaceNew( | 99 void OnAcceleratedSurfaceNew( |
| 101 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); | 100 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); |
| 102 #endif | 101 #endif |
| 103 | 102 |
| 104 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 103 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 105 void OnAcceleratedSurfaceRelease( | 104 void OnAcceleratedSurfaceRelease( |
| 106 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); | 105 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); |
| 107 #endif | 106 #endif |
| 108 | 107 |
| 109 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. | 108 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
| 110 int host_id_; | 109 int host_id_; |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 112 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
| OLD | NEW |