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

Unified Diff: ui/compositor/test/fake_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/compositor_util.cc ('k') | ui/compositor/test/fake_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/fake_context_factory.h
diff --git a/ui/compositor/test/fake_context_factory.h b/ui/compositor/test/fake_context_factory.h
index 99e8250d60072d4b7a01e380f797ff0644c73d55..7db8233f9b7e0b5561fb125db09391ec1e75a5f9 100644
--- a/ui/compositor/test/fake_context_factory.h
+++ b/ui/compositor/test/fake_context_factory.h
@@ -5,6 +5,7 @@
#ifndef UI_COMPOSITOR_TEST_FAKE_CONTEXT_FACTORY_H_
#define UI_COMPOSITOR_TEST_FAKE_CONTEXT_FACTORY_H_
+#include "cc/output/renderer_settings.h"
#include "cc/test/test_gpu_memory_buffer_manager.h"
#include "cc/test/test_task_graph_runner.h"
#include "ui/compositor/compositor.h"
@@ -21,8 +22,8 @@ namespace ui {
class FakeContextFactory : public ui::ContextFactory {
public:
- FakeContextFactory() = default;
- ~FakeContextFactory() override = default;
+ FakeContextFactory();
+ ~FakeContextFactory() override;
const cc::CompositorFrame& GetLastCompositorFrame() const;
@@ -32,10 +33,9 @@ class FakeContextFactory : public ui::ContextFactory {
scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
void RemoveCompositor(ui::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;
+ const cc::RendererSettings& GetRendererSettings() const override;
void AddObserver(ui::ContextFactoryObserver* observer) override {}
void RemoveObserver(ui::ContextFactoryObserver* observer) override {}
@@ -43,6 +43,7 @@ class FakeContextFactory : public ui::ContextFactory {
cc::FakeCompositorFrameSink* frame_sink_ = nullptr;
cc::TestTaskGraphRunner task_graph_runner_;
cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
+ cc::RendererSettings renderer_settings_;
DISALLOW_COPY_AND_ASSIGN(FakeContextFactory);
};
« no previous file with comments | « ui/compositor/compositor_util.cc ('k') | ui/compositor/test/fake_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698