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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 int host_id_; | 116 int host_id_; |
117 | 117 |
118 // These are the channel requests that we have already sent to | 118 // These are the channel requests that we have already sent to |
119 // the GPU process, but haven't heard back about yet. | 119 // the GPU process, but haven't heard back about yet. |
120 std::queue<linked_ptr<EstablishChannelCallback> > channel_requests_; | 120 std::queue<linked_ptr<EstablishChannelCallback> > channel_requests_; |
121 | 121 |
122 // The pending create command buffer requests we need to reply to. | 122 // The pending create command buffer requests we need to reply to. |
123 std::queue<linked_ptr<CreateCommandBufferCallback> > | 123 std::queue<linked_ptr<CreateCommandBufferCallback> > |
124 create_command_buffer_requests_; | 124 create_command_buffer_requests_; |
125 | 125 |
126 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) | 126 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) && !defined(USE_AURA) |
127 typedef std::pair<int32 /* renderer_id */, | 127 typedef std::pair<int32 /* renderer_id */, |
128 int32 /* render_view_id */> ViewID; | 128 int32 /* render_view_id */> ViewID; |
129 | 129 |
130 // Encapsulates surfaces that we lock when creating view command buffers. | 130 // Encapsulates surfaces that we lock when creating view command buffers. |
131 // We release this lock once the command buffer (or associated GPU process) | 131 // We release this lock once the command buffer (or associated GPU process) |
132 // is destroyed. This prevents the browser from destroying the surface | 132 // is destroyed. This prevents the browser from destroying the surface |
133 // while the GPU process is drawing to it. | 133 // while the GPU process is drawing to it. |
134 | 134 |
135 // Multimap is used to simulate reference counting, see comment in | 135 // Multimap is used to simulate reference counting, see comment in |
136 // GpuProcessHostUIShim::CreateViewCommandBuffer. | 136 // GpuProcessHostUIShim::CreateViewCommandBuffer. |
(...skipping 16 matching lines...) Expand all Loading... |
153 | 153 |
154 // Master switch for enabling/disabling GPU acceleration for the current | 154 // Master switch for enabling/disabling GPU acceleration for the current |
155 // browser session. It does not change the acceleration settings for | 155 // browser session. It does not change the acceleration settings for |
156 // existing tabs, just the future ones. | 156 // existing tabs, just the future ones. |
157 CONTENT_EXPORT static bool gpu_enabled_; | 157 CONTENT_EXPORT static bool gpu_enabled_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 159 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
160 }; | 160 }; |
161 | 161 |
162 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 162 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |