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

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

Issue 667923002: Standardize usage of virtual/override/final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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"
11 11
12 namespace base { 12 namespace base {
13 class Thread; 13 class Thread;
14 } 14 }
15 15
16 namespace webkit { 16 namespace webkit {
17 namespace gpu { 17 namespace gpu {
18 class ContextProviderInProcess; 18 class ContextProviderInProcess;
19 } 19 }
20 } 20 }
21 21
22 namespace ui { 22 namespace ui {
23 23
24 class InProcessContextFactory : public ContextFactory { 24 class InProcessContextFactory : public ContextFactory {
25 public: 25 public:
26 InProcessContextFactory(); 26 InProcessContextFactory();
27 virtual ~InProcessContextFactory(); 27 ~InProcessContextFactory() override;
28 28
29 // ContextFactory implementation 29 // ContextFactory implementation
30 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 30 scoped_ptr<cc::OutputSurface> CreateOutputSurface(
31 Compositor* compositor, 31 Compositor* compositor,
32 bool software_fallback) override; 32 bool software_fallback) override;
33 33
34 virtual scoped_refptr<Reflector> CreateReflector( 34 scoped_refptr<Reflector> CreateReflector(Compositor* mirrored_compositor,
35 Compositor* mirrored_compositor, 35 Layer* mirroring_layer) override;
36 Layer* mirroring_layer) override; 36 void RemoveReflector(scoped_refptr<Reflector> reflector) override;
37 virtual void RemoveReflector(scoped_refptr<Reflector> reflector) override;
38 37
39 virtual scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() 38 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
40 override; 39 void RemoveCompositor(Compositor* compositor) override;
41 virtual void RemoveCompositor(Compositor* compositor) override; 40 bool DoesCreateTestContexts() override;
42 virtual bool DoesCreateTestContexts() override; 41 cc::SharedBitmapManager* GetSharedBitmapManager() override;
43 virtual cc::SharedBitmapManager* GetSharedBitmapManager() override; 42 cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
44 virtual cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 43 base::MessageLoopProxy* GetCompositorMessageLoop() override;
45 virtual base::MessageLoopProxy* GetCompositorMessageLoop() override; 44 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
46 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator()
47 override;
48 45
49 private: 46 private:
50 scoped_ptr<base::Thread> compositor_thread_; 47 scoped_ptr<base::Thread> compositor_thread_;
51 scoped_refptr<webkit::gpu::ContextProviderInProcess> 48 scoped_refptr<webkit::gpu::ContextProviderInProcess>
52 shared_main_thread_contexts_; 49 shared_main_thread_contexts_;
53 cc::TestSharedBitmapManager shared_bitmap_manager_; 50 cc::TestSharedBitmapManager shared_bitmap_manager_;
54 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 51 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
55 uint32_t next_surface_id_namespace_; 52 uint32_t next_surface_id_namespace_;
56 53
57 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 54 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
58 }; 55 };
59 56
60 } // namespace ui 57 } // namespace ui
61 58
62 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 59 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/test/draw_waiter_for_test.h ('k') | ui/compositor/test/test_compositor_host_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698