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

Side by Side Diff: gpu/test_message_loop_type.h

Issue 2778833002: Revert changes to GPU test MessageLoop type. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « gpu/ipc/service/gpu_channel_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef GPU_TEST_MESSAGE_LOOP_TYPE_H_
6 #define GPU_TEST_MESSAGE_LOOP_TYPE_H_
7
8 #include "base/message_loop/message_loop.h"
9
10 #if defined(USE_OZONE)
11 #include "ui/ozone/public/ozone_platform.h"
12 #endif
13
14 namespace gpu {
15 namespace test {
16
17 // Returns the MessageLoop type needed for GPU tests. The Ozone platform may not
18 // work with TYPE_DEFAULT and this needs to be checked at runtime.
19 inline base::MessageLoop::Type GetMessageLoopTypeForGpu() {
20 #if defined(USE_OZONE)
21 return ui::OzonePlatform::EnsureInstance()->GetMessageLoopTypeForGpu();
22 #else
23 return base::MessageLoop::TYPE_DEFAULT;
24 #endif
25 }
26
27 } // namespace test
28 } // namespace gpu
29
30 #endif // GPU_TEST_MESSAGE_LOOP_TYPE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698