OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 #error Not implemented | 177 #error Not implemented |
178 #endif | 178 #endif |
179 | 179 |
180 if (type_ == TYPE_UI) { | 180 if (type_ == TYPE_UI) { |
181 if (message_pump_for_ui_factory_) | 181 if (message_pump_for_ui_factory_) |
182 pump_.reset(message_pump_for_ui_factory_()); | 182 pump_.reset(message_pump_for_ui_factory_()); |
183 else | 183 else |
184 pump_.reset(MESSAGE_PUMP_UI); | 184 pump_.reset(MESSAGE_PUMP_UI); |
185 } else if (type_ == TYPE_IO) { | 185 } else if (type_ == TYPE_IO) { |
186 pump_.reset(MESSAGE_PUMP_IO); | 186 pump_.reset(MESSAGE_PUMP_IO); |
| 187 #if defined(TOOLKIT_GTK) |
| 188 } else if (type_ == TYPE_GPU) { |
| 189 pump_.reset(new MessagePumpX11()); |
| 190 #endif |
187 #if defined(OS_ANDROID) | 191 #if defined(OS_ANDROID) |
188 } else if (type_ == TYPE_JAVA) { | 192 } else if (type_ == TYPE_JAVA) { |
189 pump_.reset(MESSAGE_PUMP_UI); | 193 pump_.reset(MESSAGE_PUMP_UI); |
190 #endif | 194 #endif |
191 } else { | 195 } else { |
192 DCHECK_EQ(TYPE_DEFAULT, type_); | 196 DCHECK_EQ(TYPE_DEFAULT, type_); |
193 pump_.reset(new MessagePumpDefault()); | 197 pump_.reset(new MessagePumpDefault()); |
194 } | 198 } |
195 } | 199 } |
196 | 200 |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 fd, | 768 fd, |
765 persistent, | 769 persistent, |
766 mode, | 770 mode, |
767 controller, | 771 controller, |
768 delegate); | 772 delegate); |
769 } | 773 } |
770 | 774 |
771 #endif | 775 #endif |
772 | 776 |
773 } // namespace base | 777 } // namespace base |
OLD | NEW |