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

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

Issue 1959183003: Add GetSurfaceManager to ui::ContextFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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.h ('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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 50 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
51 void RemoveCompositor(Compositor* compositor) override; 51 void RemoveCompositor(Compositor* compositor) override;
52 bool DoesCreateTestContexts() override; 52 bool DoesCreateTestContexts() override;
53 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 53 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
54 gfx::BufferUsage usage) override; 54 gfx::BufferUsage usage) override;
55 cc::SharedBitmapManager* GetSharedBitmapManager() override; 55 cc::SharedBitmapManager* GetSharedBitmapManager() override;
56 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 56 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
57 cc::TaskGraphRunner* GetTaskGraphRunner() override; 57 cc::TaskGraphRunner* GetTaskGraphRunner() override;
58 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 58 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
59 cc::SurfaceManager* GetSurfaceManager() override;
59 void ResizeDisplay(ui::Compositor* compositor, 60 void ResizeDisplay(ui::Compositor* compositor,
60 const gfx::Size& size) override; 61 const gfx::Size& size) override;
61 62
62 private: 63 private:
63 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_; 64 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_;
64 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_; 65 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_;
65 cc::TestSharedBitmapManager shared_bitmap_manager_; 66 cc::TestSharedBitmapManager shared_bitmap_manager_;
66 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 67 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
67 cc::TestImageFactory image_factory_; 68 cc::TestImageFactory image_factory_;
68 cc::TestTaskGraphRunner task_graph_runner_; 69 cc::TestTaskGraphRunner task_graph_runner_;
69 uint32_t next_surface_id_namespace_; 70 uint32_t next_surface_id_namespace_;
70 bool use_test_surface_; 71 bool use_test_surface_;
71 bool context_factory_for_test_; 72 bool context_factory_for_test_;
72 cc::SurfaceManager* surface_manager_; 73 cc::SurfaceManager* surface_manager_;
73 74
74 base::hash_map<Compositor*, cc::OnscreenDisplayClient*> per_compositor_data_; 75 base::hash_map<Compositor*, cc::OnscreenDisplayClient*> per_compositor_data_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 77 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
77 }; 78 };
78 79
79 } // namespace ui 80 } // namespace ui
80 81
81 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 82 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.h ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698