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

Unified Diff: ui/compositor/compositor.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/BUILD.gn ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 59396ee0051e9022f49276bdadb8669d7ee7b85b..54a104ae7619f9c5a475235562b953f1019d38b4 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -152,16 +152,15 @@ class COMPOSITOR_EXPORT ContextFactory {
// Returns refresh rate. Tests may return higher values.
virtual double GetRefreshRate() const = 0;
- // Returns the OpenGL target to use for image textures.
- virtual uint32_t GetImageTextureTarget(gfx::BufferFormat format,
- gfx::BufferUsage usage) = 0;
-
// Gets the GPU memory buffer manager.
virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
// Gets the task graph runner.
virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
+ // Gets the renderer settings.
+ virtual const cc::RendererSettings& GetRendererSettings() const = 0;
+
virtual void AddObserver(ContextFactoryObserver* observer) = 0;
virtual void RemoveObserver(ContextFactoryObserver* observer) = 0;
@@ -355,7 +354,6 @@ class COMPOSITOR_EXPORT Compositor
const cc::LayerTreeDebugState& GetLayerTreeDebugState() const;
void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state);
- const cc::RendererSettings& GetRendererSettings() const;
LayerAnimatorCollection* layer_animator_collection() {
return &layer_animator_collection_;
« no previous file with comments | « ui/compositor/BUILD.gn ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698