Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Side by Side Diff: base/message_loop/message_loop.cc

Issue 23710029: Use an X event loop in the GPU process on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_loop/message_loop.h ('k') | base/message_loop/message_pump_x11.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « base/message_loop/message_loop.h ('k') | base/message_loop/message_pump_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698