| 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 "cc/test/test_gpu_memory_buffer_manager.h" |
| 9 #include "cc/test/test_shared_bitmap_manager.h" |
| 8 #include "ui/compositor/compositor.h" | 10 #include "ui/compositor/compositor.h" |
| 9 | 11 |
| 10 namespace base { | 12 namespace base { |
| 11 class Thread; | 13 class Thread; |
| 12 } | 14 } |
| 13 | 15 |
| 14 namespace webkit { | 16 namespace webkit { |
| 15 namespace gpu { | 17 namespace gpu { |
| 16 class ContextProviderInProcess; | 18 class ContextProviderInProcess; |
| 17 } | 19 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 virtual scoped_refptr<Reflector> CreateReflector( | 34 virtual scoped_refptr<Reflector> CreateReflector( |
| 33 Compositor* mirrored_compositor, | 35 Compositor* mirrored_compositor, |
| 34 Layer* mirroring_layer) OVERRIDE; | 36 Layer* mirroring_layer) OVERRIDE; |
| 35 virtual void RemoveReflector(scoped_refptr<Reflector> reflector) OVERRIDE; | 37 virtual void RemoveReflector(scoped_refptr<Reflector> reflector) OVERRIDE; |
| 36 | 38 |
| 37 virtual scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() | 39 virtual scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() |
| 38 OVERRIDE; | 40 OVERRIDE; |
| 39 virtual void RemoveCompositor(Compositor* compositor) OVERRIDE; | 41 virtual void RemoveCompositor(Compositor* compositor) OVERRIDE; |
| 40 virtual bool DoesCreateTestContexts() OVERRIDE; | 42 virtual bool DoesCreateTestContexts() OVERRIDE; |
| 41 virtual cc::SharedBitmapManager* GetSharedBitmapManager() OVERRIDE; | 43 virtual cc::SharedBitmapManager* GetSharedBitmapManager() OVERRIDE; |
| 44 virtual cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() OVERRIDE; |
| 42 virtual base::MessageLoopProxy* GetCompositorMessageLoop() OVERRIDE; | 45 virtual base::MessageLoopProxy* GetCompositorMessageLoop() OVERRIDE; |
| 43 | 46 |
| 44 private: | 47 private: |
| 45 scoped_ptr<base::Thread> compositor_thread_; | 48 scoped_ptr<base::Thread> compositor_thread_; |
| 46 scoped_refptr<webkit::gpu::ContextProviderInProcess> | 49 scoped_refptr<webkit::gpu::ContextProviderInProcess> |
| 47 shared_main_thread_contexts_; | 50 shared_main_thread_contexts_; |
| 48 scoped_ptr<cc::SharedBitmapManager> shared_bitmap_manager_; | 51 cc::TestSharedBitmapManager shared_bitmap_manager_; |
| 52 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; |
| 49 | 53 |
| 50 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); | 54 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); |
| 51 }; | 55 }; |
| 52 | 56 |
| 53 } // namespace ui | 57 } // namespace ui |
| 54 | 58 |
| 55 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ | 59 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ |
| OLD | NEW |