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

Unified Diff: ui/compositor/test/in_process_context_factory.h

Issue 2879463002: Initialize RendererSettings in ContextFactory (Closed)
Patch Set: const RendererSettings Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/test/fake_context_factory.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_factory.h
diff --git a/ui/compositor/test/in_process_context_factory.h b/ui/compositor/test/in_process_context_factory.h
index d196628e1644a3deb66fe75d80ebfccd05b166d6..bb41ede543b29bdc58fabe660c4ad605502dd431 100644
--- a/ui/compositor/test/in_process_context_factory.h
+++ b/ui/compositor/test/in_process_context_factory.h
@@ -57,8 +57,6 @@ class InProcessContextFactory : public ContextFactory,
scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
void RemoveCompositor(Compositor* compositor) override;
double GetRefreshRate() const override;
- uint32_t GetImageTextureTarget(gfx::BufferFormat format,
- gfx::BufferUsage usage) override;
gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
cc::TaskGraphRunner* GetTaskGraphRunner() override;
cc::FrameSinkId AllocateFrameSinkId() override;
@@ -76,6 +74,7 @@ class InProcessContextFactory : public ContextFactory,
base::TimeTicks timebase,
base::TimeDelta interval) override {}
void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
+ const cc::RendererSettings& GetRendererSettings() const override;
void AddObserver(ContextFactoryObserver* observer) override;
void RemoveObserver(ContextFactoryObserver* observer) override;
@@ -96,6 +95,7 @@ class InProcessContextFactory : public ContextFactory,
cc::SurfaceManager* surface_manager_;
base::ObserverList<ContextFactoryObserver> observer_list_;
+ cc::RendererSettings renderer_settings_;
using PerCompositorDataMap =
base::hash_map<ui::Compositor*, std::unique_ptr<PerCompositorData>>;
PerCompositorDataMap per_compositor_data_;
« no previous file with comments | « ui/compositor/test/fake_context_factory.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