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

Side by Side Diff: ui/compositor/test/in_process_context_factory.h

Issue 943763004: cc: Remove the unused compositor thread variable and interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compositorthread: build Created 5 years, 10 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 | « ui/compositor/compositor.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('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 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" 8 #include "cc/test/test_gpu_memory_buffer_manager.h"
9 #include "cc/test/test_shared_bitmap_manager.h" 9 #include "cc/test/test_shared_bitmap_manager.h"
10 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
(...skipping 29 matching lines...) Expand all
40 40
41 scoped_refptr<Reflector> CreateReflector(Compositor* mirrored_compositor, 41 scoped_refptr<Reflector> CreateReflector(Compositor* mirrored_compositor,
42 Layer* mirroring_layer) override; 42 Layer* mirroring_layer) override;
43 void RemoveReflector(scoped_refptr<Reflector> reflector) override; 43 void RemoveReflector(scoped_refptr<Reflector> reflector) override;
44 44
45 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 45 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
46 void RemoveCompositor(Compositor* compositor) override; 46 void RemoveCompositor(Compositor* compositor) override;
47 bool DoesCreateTestContexts() override; 47 bool DoesCreateTestContexts() override;
48 cc::SharedBitmapManager* GetSharedBitmapManager() override; 48 cc::SharedBitmapManager* GetSharedBitmapManager() override;
49 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 49 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
50 base::MessageLoopProxy* GetCompositorMessageLoop() override;
51 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 50 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
52 void ResizeDisplay(ui::Compositor* compositor, 51 void ResizeDisplay(ui::Compositor* compositor,
53 const gfx::Size& size) override; 52 const gfx::Size& size) override;
54 53
55 private: 54 private:
56 scoped_ptr<base::Thread> compositor_thread_;
57 scoped_refptr<cc::ContextProvider> shared_main_thread_contexts_; 55 scoped_refptr<cc::ContextProvider> shared_main_thread_contexts_;
58 cc::TestSharedBitmapManager shared_bitmap_manager_; 56 cc::TestSharedBitmapManager shared_bitmap_manager_;
59 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 57 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
60 uint32_t next_surface_id_namespace_; 58 uint32_t next_surface_id_namespace_;
61 bool use_test_surface_; 59 bool use_test_surface_;
62 bool context_factory_for_test_; 60 bool context_factory_for_test_;
63 cc::SurfaceManager* surface_manager_; 61 cc::SurfaceManager* surface_manager_;
64 62
65 base::hash_map<Compositor*, cc::OnscreenDisplayClient*> per_compositor_data_; 63 base::hash_map<Compositor*, cc::OnscreenDisplayClient*> per_compositor_data_;
66 64
67 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 65 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
68 }; 66 };
69 67
70 } // namespace ui 68 } // namespace ui
71 69
72 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 70 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698