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

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

Issue 2789753002: Convert offscreen canvas to use FrameSinkManagerHost. (Closed)
Patch Set: Lower similarity. Created 3 years, 8 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
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 30 matching lines...) Expand all
41 class AnimationHost; 41 class AnimationHost;
42 class AnimationTimeline; 42 class AnimationTimeline;
43 class ContextProvider; 43 class ContextProvider;
44 class Layer; 44 class Layer;
45 class LayerTreeDebugState; 45 class LayerTreeDebugState;
46 class LayerTreeHost; 46 class LayerTreeHost;
47 class LocalSurfaceId; 47 class LocalSurfaceId;
48 class RendererSettings; 48 class RendererSettings;
49 class SurfaceManager; 49 class SurfaceManager;
50 class TaskGraphRunner; 50 class TaskGraphRunner;
51 namespace mojom {
52 class DisplayCompositor;
53 }
51 } 54 }
52 55
53 namespace gfx { 56 namespace gfx {
54 class Rect; 57 class Rect;
55 class ScrollOffset; 58 class ScrollOffset;
56 class Size; 59 class Size;
57 } 60 }
58 61
59 namespace gpu { 62 namespace gpu {
60 class GpuMemoryBufferManager; 63 class GpuMemoryBufferManager;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 99
97 // Removes the reflector, which stops the mirroring. 100 // Removes the reflector, which stops the mirroring.
98 virtual void RemoveReflector(Reflector* reflector) = 0; 101 virtual void RemoveReflector(Reflector* reflector) = 0;
99 102
100 // Allocate a new client ID for the display compositor. 103 // Allocate a new client ID for the display compositor.
101 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; 104 virtual cc::FrameSinkId AllocateFrameSinkId() = 0;
102 105
103 // Gets the surface manager. 106 // Gets the surface manager.
104 virtual cc::SurfaceManager* GetSurfaceManager() = 0; 107 virtual cc::SurfaceManager* GetSurfaceManager() = 0;
105 108
109 // Gets a Mojo pointer to the DisplayCompositor.
110 virtual cc::mojom::DisplayCompositor* GetDisplayCompositor() = 0;
111
106 // Inform the display corresponding to this compositor if it is visible. When 112 // Inform the display corresponding to this compositor if it is visible. When
107 // false it does not need to produce any frames. Visibility is reset for each 113 // false it does not need to produce any frames. Visibility is reset for each
108 // call to CreateCompositorFrameSink. 114 // call to CreateCompositorFrameSink.
109 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0; 115 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0;
110 116
111 // Resize the display corresponding to this compositor to a particular size. 117 // Resize the display corresponding to this compositor to a particular size.
112 virtual void ResizeDisplay(ui::Compositor* compositor, 118 virtual void ResizeDisplay(ui::Compositor* compositor,
113 const gfx::Size& size) = 0; 119 const gfx::Size& size) = 0;
114 120
115 // Set the output color profile into which this compositor should render. 121 // Set the output color profile into which this compositor should render.
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 424
419 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 425 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
420 base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_; 426 base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_;
421 427
422 DISALLOW_COPY_AND_ASSIGN(Compositor); 428 DISALLOW_COPY_AND_ASSIGN(Compositor);
423 }; 429 };
424 430
425 } // namespace ui 431 } // namespace ui
426 432
427 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 433 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698