OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ | 5 #ifndef UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ |
6 #define UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ | 6 #define UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 const scoped_refptr<base::SingleThreadTaskRunner>& gpu_task_runner); | 37 const scoped_refptr<base::SingleThreadTaskRunner>& gpu_task_runner); |
38 | 38 |
39 private: | 39 private: |
40 scoped_ptr<FakeGpuProcess> fake_gpu_process_; | 40 scoped_ptr<FakeGpuProcess> fake_gpu_process_; |
41 scoped_ptr<FakeGpuProcessHost> fake_gpu_process_host_; | 41 scoped_ptr<FakeGpuProcessHost> fake_gpu_process_host_; |
42 scoped_ptr<base::Thread> io_helper_thread_; | 42 scoped_ptr<base::Thread> io_helper_thread_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(OzoneGpuTestHelper); | 44 DISALLOW_COPY_AND_ASSIGN(OzoneGpuTestHelper); |
45 }; | 45 }; |
46 | 46 |
47 // Helper class for tests to initialize both UI and GPU Ozone platform. | |
48 class OZONE_EXPORT OzoneInitializerForTest { | |
reveman
2016/01/11 19:13:51
Do we really need this class? I feel like the code
dshwang
2016/01/11 20:17:45
The first patch set was similar to what you say no
reveman
2016/01/13 15:05:17
I didn't mean that we should hide the need for ipc
dshwang
2016/01/13 15:37:32
I see that you want light-version ozone backend fo
| |
49 public: | |
50 static scoped_ptr<OzoneInitializerForTest> Create(); | |
51 ~OzoneInitializerForTest(); | |
52 | |
53 private: | |
54 OzoneInitializerForTest(); | |
55 bool Initialize(); | |
56 | |
57 scoped_ptr<OzoneGpuTestHelper> gpu_helper_; | |
reveman
2016/01/11 19:13:51
What is this used for?
dshwang
2016/01/11 20:17:45
This sets up message forwarding between the "gpu"
reveman
2016/01/13 15:05:17
I guess this is a more general Ozone testing probl
dshwang
2016/01/13 15:37:32
As I explain above, it's accidental problem to reu
| |
58 | |
59 DISALLOW_COPY_AND_ASSIGN(OzoneInitializerForTest); | |
60 }; | |
61 | |
47 } // namespace ui | 62 } // namespace ui |
48 | 63 |
49 #endif // UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ | 64 #endif // UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ |
OLD | NEW |