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

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

Issue 1959183003: Add GetSurfaceManager to ui::ContextFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « ash/mus/stub_context_factory.cc ('k') | ui/compositor/test/in_process_context_factory.h » ('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 26 matching lines...) Expand all
37 37
38 namespace cc { 38 namespace cc {
39 class AnimationTimeline; 39 class AnimationTimeline;
40 class ContextProvider; 40 class ContextProvider;
41 class Layer; 41 class Layer;
42 class LayerTreeDebugState; 42 class LayerTreeDebugState;
43 class LayerTreeHost; 43 class LayerTreeHost;
44 class RendererSettings; 44 class RendererSettings;
45 class SharedBitmapManager; 45 class SharedBitmapManager;
46 class SurfaceIdAllocator; 46 class SurfaceIdAllocator;
47 class SurfaceManager;
47 class TaskGraphRunner; 48 class TaskGraphRunner;
48 } 49 }
49 50
50 namespace gfx { 51 namespace gfx {
51 class Rect; 52 class Rect;
52 class Size; 53 class Size;
53 } 54 }
54 55
55 namespace gpu { 56 namespace gpu {
56 class GpuMemoryBufferManager; 57 class GpuMemoryBufferManager;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Gets the GPU memory buffer manager. 110 // Gets the GPU memory buffer manager.
110 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 111 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
111 112
112 // Gets the task graph runner. 113 // Gets the task graph runner.
113 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 114 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
114 115
115 // Creates a Surface ID allocator with a new namespace. 116 // Creates a Surface ID allocator with a new namespace.
116 virtual std::unique_ptr<cc::SurfaceIdAllocator> 117 virtual std::unique_ptr<cc::SurfaceIdAllocator>
117 CreateSurfaceIdAllocator() = 0; 118 CreateSurfaceIdAllocator() = 0;
118 119
120 // Gets the surface manager.
121 virtual cc::SurfaceManager* GetSurfaceManager() = 0;
122
119 // Resize the display corresponding to this compositor to a particular size. 123 // Resize the display corresponding to this compositor to a particular size.
120 virtual void ResizeDisplay(ui::Compositor* compositor, 124 virtual void ResizeDisplay(ui::Compositor* compositor,
121 const gfx::Size& size) = 0; 125 const gfx::Size& size) = 0;
122 }; 126 };
123 127
124 // This class represents a lock on the compositor, that can be used to prevent 128 // This class represents a lock on the compositor, that can be used to prevent
125 // commits to the compositor tree while we're waiting for an asynchronous 129 // commits to the compositor tree while we're waiting for an asynchronous
126 // event. The typical use case is when waiting for a renderer to produce a frame 130 // event. The typical use case is when waiting for a renderer to produce a frame
127 // at the right size. The caller keeps a reference on this object, and drops the 131 // at the right size. The caller keeps a reference on this object, and drops the
128 // reference once it desires to release the lock. 132 // reference once it desires to release the lock.
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 368 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
365 369
366 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 370 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
367 371
368 DISALLOW_COPY_AND_ASSIGN(Compositor); 372 DISALLOW_COPY_AND_ASSIGN(Compositor);
369 }; 373 };
370 374
371 } // namespace ui 375 } // namespace ui
372 376
373 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 377 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ash/mus/stub_context_factory.cc ('k') | ui/compositor/test/in_process_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698