| 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_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // transitions from the unscheduled to the scheduled state. When this occurs | 81 // transitions from the unscheduled to the scheduled state. When this occurs |
| 82 // deferred IPC messaged are handled. | 82 // deferred IPC messaged are handled. |
| 83 void OnScheduled(); | 83 void OnScheduled(); |
| 84 | 84 |
| 85 void CreateViewCommandBuffer( | 85 void CreateViewCommandBuffer( |
| 86 gfx::PluginWindowHandle window, | 86 gfx::PluginWindowHandle window, |
| 87 int32 render_view_id, | 87 int32 render_view_id, |
| 88 const GPUCreateCommandBufferConfig& init_params, | 88 const GPUCreateCommandBufferConfig& init_params, |
| 89 int32* route_id); | 89 int32* route_id); |
| 90 | 90 |
| 91 void ViewResized(int32 command_buffer_route_id); | |
| 92 | |
| 93 gfx::GLShareGroup* share_group() const { return share_group_.get(); } | 91 gfx::GLShareGroup* share_group() const { return share_group_.get(); } |
| 94 | 92 |
| 95 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); | 93 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); |
| 96 | 94 |
| 97 void LoseAllContexts(); | 95 void LoseAllContexts(); |
| 98 | 96 |
| 99 // Destroy channel and all contained contexts. | 97 // Destroy channel and all contained contexts. |
| 100 void DestroySoon(); | 98 void DestroySoon(); |
| 101 | 99 |
| 102 // Get the TransportTexture by ID. | 100 // Get the TransportTexture by ID. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 bool handle_messages_scheduled_; | 183 bool handle_messages_scheduled_; |
| 186 bool processed_get_state_fast_; | 184 bool processed_get_state_fast_; |
| 187 int32 num_contexts_preferring_discrete_gpu_; | 185 int32 num_contexts_preferring_discrete_gpu_; |
| 188 | 186 |
| 189 base::WeakPtrFactory<GpuChannel> weak_factory_; | 187 base::WeakPtrFactory<GpuChannel> weak_factory_; |
| 190 | 188 |
| 191 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 189 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 192 }; | 190 }; |
| 193 | 191 |
| 194 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 192 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |