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_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ | 5 #ifndef UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ |
6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ | 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void AddObserver(ContextFactoryObserver* observer) override; | 72 void AddObserver(ContextFactoryObserver* observer) override; |
73 void RemoveObserver(ContextFactoryObserver* observer) override; | 73 void RemoveObserver(ContextFactoryObserver* observer) override; |
74 | 74 |
75 private: | 75 private: |
76 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_; | 76 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_; |
77 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_; | 77 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_; |
78 cc::TestSharedBitmapManager shared_bitmap_manager_; | 78 cc::TestSharedBitmapManager shared_bitmap_manager_; |
79 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; | 79 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; |
80 cc::TestImageFactory image_factory_; | 80 cc::TestImageFactory image_factory_; |
81 cc::TestTaskGraphRunner task_graph_runner_; | 81 cc::TestTaskGraphRunner task_graph_runner_; |
82 uint32_t next_surface_id_namespace_; | 82 uint32_t next_surface_client_id_; |
83 bool use_test_surface_; | 83 bool use_test_surface_; |
84 bool context_factory_for_test_; | 84 bool context_factory_for_test_; |
85 cc::SurfaceManager* surface_manager_; | 85 cc::SurfaceManager* surface_manager_; |
86 base::ObserverList<ContextFactoryObserver> observer_list_; | 86 base::ObserverList<ContextFactoryObserver> observer_list_; |
87 | 87 |
88 base::hash_map<Compositor*, std::unique_ptr<cc::Display>> | 88 base::hash_map<Compositor*, std::unique_ptr<cc::Display>> |
89 per_compositor_data_; | 89 per_compositor_data_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); | 91 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace ui | 94 } // namespace ui |
95 | 95 |
96 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ | 96 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ |
OLD | NEW |