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 2102203003: Color: Plumb color profile from ui::Compositor to cc::DirectRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of s/ColorProfile/ColorSpace/ Created 4 years, 5 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/views/mus/surface_context_factory.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 <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool DoesCreateTestContexts() override; 57 bool DoesCreateTestContexts() override;
58 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 58 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
59 gfx::BufferUsage usage) override; 59 gfx::BufferUsage usage) override;
60 cc::SharedBitmapManager* GetSharedBitmapManager() override; 60 cc::SharedBitmapManager* GetSharedBitmapManager() override;
61 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 61 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
62 cc::TaskGraphRunner* GetTaskGraphRunner() override; 62 cc::TaskGraphRunner* GetTaskGraphRunner() override;
63 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 63 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
64 cc::SurfaceManager* GetSurfaceManager() override; 64 cc::SurfaceManager* GetSurfaceManager() override;
65 void ResizeDisplay(ui::Compositor* compositor, 65 void ResizeDisplay(ui::Compositor* compositor,
66 const gfx::Size& size) override; 66 const gfx::Size& size) override;
67 void SetDisplayColorSpace(ui::Compositor* compositor,
68 const gfx::ColorSpace& color_space) override {}
67 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 69 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
68 base::TimeDelta interval) override {} 70 base::TimeDelta interval) override {}
69 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {} 71 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
70 void AddObserver(ContextFactoryObserver* observer) override; 72 void AddObserver(ContextFactoryObserver* observer) override;
71 void RemoveObserver(ContextFactoryObserver* observer) override; 73 void RemoveObserver(ContextFactoryObserver* observer) override;
72 74
73 private: 75 private:
74 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_; 76 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_;
75 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_; 77 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_;
76 cc::TestSharedBitmapManager shared_bitmap_manager_; 78 cc::TestSharedBitmapManager shared_bitmap_manager_;
77 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 79 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
78 cc::TestImageFactory image_factory_; 80 cc::TestImageFactory image_factory_;
79 cc::TestTaskGraphRunner task_graph_runner_; 81 cc::TestTaskGraphRunner task_graph_runner_;
80 uint32_t next_surface_id_namespace_; 82 uint32_t next_surface_id_namespace_;
81 bool use_test_surface_; 83 bool use_test_surface_;
82 bool context_factory_for_test_; 84 bool context_factory_for_test_;
83 cc::SurfaceManager* surface_manager_; 85 cc::SurfaceManager* surface_manager_;
84 base::ObserverList<ContextFactoryObserver> observer_list_; 86 base::ObserverList<ContextFactoryObserver> observer_list_;
85 87
86 base::hash_map<Compositor*, std::unique_ptr<cc::Display>> 88 base::hash_map<Compositor*, std::unique_ptr<cc::Display>>
87 per_compositor_data_; 89 per_compositor_data_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 91 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
90 }; 92 };
91 93
92 } // namespace ui 94 } // namespace ui
93 95
94 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 96 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/views/mus/surface_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698