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

Unified Diff: content/browser/compositor/gpu_process_transport_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 | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.h
diff --git a/content/browser/compositor/gpu_process_transport_factory.h b/content/browser/compositor/gpu_process_transport_factory.h
index e54e923f394c6f6e860f15ba706dd112a4267d6b..3474d77a1a98a8ffc2a30f06b214efd01f35a55d 100644
--- a/content/browser/compositor/gpu_process_transport_factory.h
+++ b/content/browser/compositor/gpu_process_transport_factory.h
@@ -16,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "build/build_config.h"
+#include "cc/output/renderer_settings.h"
#include "cc/surfaces/frame_sink_id_allocator.h"
#include "content/browser/compositor/image_transport_factory.h"
#include "gpu/ipc/client/gpu_channel_host.h"
@@ -48,11 +49,10 @@ class GpuProcessTransportFactory : public ui::ContextFactory,
void CreateCompositorFrameSink(
base::WeakPtr<ui::Compositor> compositor) override;
scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
- uint32_t GetImageTextureTarget(gfx::BufferFormat format,
- gfx::BufferUsage usage) override;
double GetRefreshRate() const 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;
@@ -121,6 +121,7 @@ class GpuProcessTransportFactory : public ui::ContextFactory,
PerCompositorDataMap;
PerCompositorDataMap per_compositor_data_;
+ const cc::RendererSettings renderer_settings_;
scoped_refptr<ui::ContextProviderCommandBuffer> shared_main_thread_contexts_;
std::unique_ptr<display_compositor::GLHelper> gl_helper_;
base::ObserverList<ui::ContextFactoryObserver> observer_list_;
« no previous file with comments | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698