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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void HandleMessage(); | 120 void HandleMessage(); |
121 | 121 |
122 // Message handlers. | 122 // Message handlers. |
123 void OnInitialize(base::ProcessHandle renderer_process); | 123 void OnInitialize(base::ProcessHandle renderer_process); |
124 void OnCreateOffscreenCommandBuffer( | 124 void OnCreateOffscreenCommandBuffer( |
125 const gfx::Size& size, | 125 const gfx::Size& size, |
126 const GPUCreateCommandBufferConfig& init_params, | 126 const GPUCreateCommandBufferConfig& init_params, |
127 IPC::Message* reply_message); | 127 IPC::Message* reply_message); |
128 void OnDestroyCommandBuffer(int32 route_id, IPC::Message* reply_message); | 128 void OnDestroyCommandBuffer(int32 route_id, IPC::Message* reply_message); |
129 | 129 |
130 void OnEcho(const IPC::Message& message); | |
131 | |
132 void OnWillGpuSwitchOccur(bool is_creating_context, | 130 void OnWillGpuSwitchOccur(bool is_creating_context, |
133 gfx::GpuPreference gpu_preference, | 131 gfx::GpuPreference gpu_preference, |
134 IPC::Message* reply_message); | 132 IPC::Message* reply_message); |
135 void OnCloseChannel(); | 133 void OnCloseChannel(); |
136 | 134 |
137 void WillCreateCommandBuffer(gfx::GpuPreference gpu_preference); | 135 void WillCreateCommandBuffer(gfx::GpuPreference gpu_preference); |
138 void DidDestroyCommandBuffer(gfx::GpuPreference gpu_preference); | 136 void DidDestroyCommandBuffer(gfx::GpuPreference gpu_preference); |
139 | 137 |
140 // The lifetime of objects of this class is managed by a GpuChannelManager. | 138 // The lifetime of objects of this class is managed by a GpuChannelManager. |
141 // The GpuChannelManager destroy all the GpuChannels that they own when they | 139 // The GpuChannelManager destroy all the GpuChannels that they own when they |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 bool handle_messages_scheduled_; | 175 bool handle_messages_scheduled_; |
178 bool processed_get_state_fast_; | 176 bool processed_get_state_fast_; |
179 int32 num_contexts_preferring_discrete_gpu_; | 177 int32 num_contexts_preferring_discrete_gpu_; |
180 | 178 |
181 base::WeakPtrFactory<GpuChannel> weak_factory_; | 179 base::WeakPtrFactory<GpuChannel> weak_factory_; |
182 | 180 |
183 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 181 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
184 }; | 182 }; |
185 | 183 |
186 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 184 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |