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

Side by Side Diff: ui/compositor/compositor.h

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nit 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 | « services/ui/ws/server_window_surface.cc ('k') | ui/compositor/compositor.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Gets the shared bitmap manager for software mode. 122 // Gets the shared bitmap manager for software mode.
123 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 123 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
124 124
125 // Gets the GPU memory buffer manager. 125 // Gets the GPU memory buffer manager.
126 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 126 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
127 127
128 // Gets the task graph runner. 128 // Gets the task graph runner.
129 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 129 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
130 130
131 // Creates a Surface ID allocator with a new namespace. 131 // Allocate a new client ID for the display compositor.
132 virtual std::unique_ptr<cc::SurfaceIdAllocator> 132 virtual uint32_t AllocateSurfaceClientId() = 0;
133 CreateSurfaceIdAllocator() = 0;
134 133
135 // Gets the surface manager. 134 // Gets the surface manager.
136 virtual cc::SurfaceManager* GetSurfaceManager() = 0; 135 virtual cc::SurfaceManager* GetSurfaceManager() = 0;
137 136
138 // Resize the display corresponding to this compositor to a particular size. 137 // Resize the display corresponding to this compositor to a particular size.
139 virtual void ResizeDisplay(ui::Compositor* compositor, 138 virtual void ResizeDisplay(ui::Compositor* compositor,
140 const gfx::Size& size) = 0; 139 const gfx::Size& size) = 0;
141 140
142 // Set the output color profile into which this compositor should render. 141 // Set the output color profile into which this compositor should render.
143 virtual void SetDisplayColorSpace(ui::Compositor* compositor, 142 virtual void SetDisplayColorSpace(ui::Compositor* compositor,
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 395 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
397 396
398 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 397 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
399 398
400 DISALLOW_COPY_AND_ASSIGN(Compositor); 399 DISALLOW_COPY_AND_ASSIGN(Compositor);
401 }; 400 };
402 401
403 } // namespace ui 402 } // namespace ui
404 403
405 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 404 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « services/ui/ws/server_window_surface.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698