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

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

Issue 858643002: webkit: Cleanup - make everything private as much as possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 5 years, 11 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 | « no previous file | webkit/common/gpu/context_provider_in_process.h » ('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"
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 ContextProviderWebContext;
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 ~InProcessContextFactory() override; 27 ~InProcessContextFactory() override;
28 28
(...skipping 16 matching lines...) Expand all
45 bool DoesCreateTestContexts() override; 45 bool DoesCreateTestContexts() override;
46 cc::SharedBitmapManager* GetSharedBitmapManager() override; 46 cc::SharedBitmapManager* GetSharedBitmapManager() override;
47 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 47 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
48 base::MessageLoopProxy* GetCompositorMessageLoop() override; 48 base::MessageLoopProxy* GetCompositorMessageLoop() override;
49 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 49 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
50 void ResizeDisplay(ui::Compositor* compositor, 50 void ResizeDisplay(ui::Compositor* compositor,
51 const gfx::Size& size) override; 51 const gfx::Size& size) override;
52 52
53 private: 53 private:
54 scoped_ptr<base::Thread> compositor_thread_; 54 scoped_ptr<base::Thread> compositor_thread_;
55 scoped_refptr<webkit::gpu::ContextProviderInProcess> 55 scoped_refptr<webkit::gpu::ContextProviderWebContext>
56 shared_main_thread_contexts_; 56 shared_main_thread_contexts_;
57 cc::TestSharedBitmapManager shared_bitmap_manager_; 57 cc::TestSharedBitmapManager shared_bitmap_manager_;
58 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 58 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
59 uint32_t next_surface_id_namespace_; 59 uint32_t next_surface_id_namespace_;
60 bool use_test_surface_; 60 bool use_test_surface_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 62 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
63 }; 63 };
64 64
65 } // namespace ui 65 } // namespace ui
66 66
67 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 67 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/common/gpu/context_provider_in_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698