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_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // the GPU process, but haven't heard back about yet. | 124 // the GPU process, but haven't heard back about yet. |
125 std::queue<linked_ptr<EstablishChannelCallback> > channel_requests_; | 125 std::queue<linked_ptr<EstablishChannelCallback> > channel_requests_; |
126 | 126 |
127 // The pending synchronization requests we need to reply to. | 127 // The pending synchronization requests we need to reply to. |
128 std::queue<linked_ptr<SynchronizeCallback> > synchronize_requests_; | 128 std::queue<linked_ptr<SynchronizeCallback> > synchronize_requests_; |
129 | 129 |
130 // The pending create command buffer requests we need to reply to. | 130 // The pending create command buffer requests we need to reply to. |
131 std::queue<linked_ptr<CreateCommandBufferCallback> > | 131 std::queue<linked_ptr<CreateCommandBufferCallback> > |
132 create_command_buffer_requests_; | 132 create_command_buffer_requests_; |
133 | 133 |
134 #if defined(OS_LINUX) && !defined(TOUCH_UI) | 134 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) |
135 typedef std::pair<int32 /* renderer_id */, | 135 typedef std::pair<int32 /* renderer_id */, |
136 int32 /* render_view_id */> ViewID; | 136 int32 /* render_view_id */> ViewID; |
137 | 137 |
138 // Encapsulates surfaces that we lock when creating view command buffers. | 138 // Encapsulates surfaces that we lock when creating view command buffers. |
139 // We release this lock once the command buffer (or associated GPU process) | 139 // We release this lock once the command buffer (or associated GPU process) |
140 // is destroyed. This prevents the browser from destroying the surface | 140 // is destroyed. This prevents the browser from destroying the surface |
141 // while the GPU process is drawing to it. | 141 // while the GPU process is drawing to it. |
142 | 142 |
143 // Multimap is used to simulate reference counting, see comment in | 143 // Multimap is used to simulate reference counting, see comment in |
144 // GpuProcessHostUIShim::CreateViewCommandBuffer. | 144 // GpuProcessHostUIShim::CreateViewCommandBuffer. |
(...skipping 11 matching lines...) Expand all Loading... |
156 // Whether we are running a GPU thread inside the browser process instead | 156 // Whether we are running a GPU thread inside the browser process instead |
157 // of a separate GPU process. | 157 // of a separate GPU process. |
158 bool in_process_; | 158 bool in_process_; |
159 | 159 |
160 scoped_ptr<GpuMainThread> in_process_gpu_thread_; | 160 scoped_ptr<GpuMainThread> in_process_gpu_thread_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
163 }; | 163 }; |
164 | 164 |
165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |