| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 6 #define CHROME_BROWSER_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const GPUInfo& gpu_info() const; | 55 const GPUInfo& gpu_info() const; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 friend struct DefaultSingletonTraits<GpuProcessHostUIShim>; | 58 friend struct DefaultSingletonTraits<GpuProcessHostUIShim>; |
| 59 | 59 |
| 60 GpuProcessHostUIShim(); | 60 GpuProcessHostUIShim(); |
| 61 virtual ~GpuProcessHostUIShim(); | 61 virtual ~GpuProcessHostUIShim(); |
| 62 | 62 |
| 63 // Message handlers. | 63 // Message handlers. |
| 64 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); | 64 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); |
| 65 | 65 void OnScheduleComposite(int32 renderer_id, int32 render_view_id); |
| 66 void OnControlMessageReceived(const IPC::Message& message); | 66 void OnControlMessageReceived(const IPC::Message& message); |
| 67 | 67 |
| 68 int last_routing_id_; | 68 int last_routing_id_; |
| 69 | 69 |
| 70 GPUInfo gpu_info_; | 70 GPUInfo gpu_info_; |
| 71 | 71 |
| 72 MessageRouter router_; | 72 MessageRouter router_; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 75 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 76 | 76 |
| OLD | NEW |