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

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

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « ui/android/context_provider_factory.h ('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 26 matching lines...) Expand all
37 class SingleThreadTaskRunner; 37 class SingleThreadTaskRunner;
38 } 38 }
39 39
40 namespace cc { 40 namespace cc {
41 class AnimationTimeline; 41 class AnimationTimeline;
42 class ContextProvider; 42 class ContextProvider;
43 class Layer; 43 class Layer;
44 class LayerTreeDebugState; 44 class LayerTreeDebugState;
45 class LayerTreeHost; 45 class LayerTreeHost;
46 class RendererSettings; 46 class RendererSettings;
47 class SharedBitmapManager;
48 class SurfaceIdAllocator; 47 class SurfaceIdAllocator;
49 class SurfaceManager; 48 class SurfaceManager;
50 class TaskGraphRunner; 49 class TaskGraphRunner;
51 } 50 }
52 51
53 namespace gfx { 52 namespace gfx {
54 class Rect; 53 class Rect;
55 class ScrollOffset; 54 class ScrollOffset;
56 class Size; 55 class Size;
57 } 56 }
58 57
59 namespace gpu { 58 namespace gpu {
60 class GpuMemoryBufferManager; 59 class GpuMemoryBufferManager;
61 struct Mailbox;
62 } 60 }
63 61
64 namespace ui { 62 namespace ui {
65 63
66 class Compositor; 64 class Compositor;
67 class CompositorVSyncManager; 65 class CompositorVSyncManager;
68 class LatencyInfo; 66 class LatencyInfo;
69 class Layer; 67 class Layer;
70 class Reflector; 68 class Reflector;
71 class Texture; 69 class Texture;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual void RemoveCompositor(Compositor* compositor) = 0; 117 virtual void RemoveCompositor(Compositor* compositor) = 0;
120 118
121 // When true, the factory uses test contexts that do not do real GL 119 // When true, the factory uses test contexts that do not do real GL
122 // operations. 120 // operations.
123 virtual bool DoesCreateTestContexts() = 0; 121 virtual bool DoesCreateTestContexts() = 0;
124 122
125 // Returns the OpenGL target to use for image textures. 123 // Returns the OpenGL target to use for image textures.
126 virtual uint32_t GetImageTextureTarget(gfx::BufferFormat format, 124 virtual uint32_t GetImageTextureTarget(gfx::BufferFormat format,
127 gfx::BufferUsage usage) = 0; 125 gfx::BufferUsage usage) = 0;
128 126
129 // Gets the shared bitmap manager for software mode.
130 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
131
132 // Gets the GPU memory buffer manager. 127 // Gets the GPU memory buffer manager.
133 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 128 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
134 129
135 // Gets the task graph runner. 130 // Gets the task graph runner.
136 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 131 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
137 132
138 // Allocate a new client ID for the display compositor. 133 // Allocate a new client ID for the display compositor.
139 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; 134 virtual cc::FrameSinkId AllocateFrameSinkId() = 0;
140 135
141 // Gets the surface manager. 136 // Gets the surface manager.
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 gfx::ColorSpace color_space_; 430 gfx::ColorSpace color_space_;
436 431
437 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 432 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
438 433
439 DISALLOW_COPY_AND_ASSIGN(Compositor); 434 DISALLOW_COPY_AND_ASSIGN(Compositor);
440 }; 435 };
441 436
442 } // namespace ui 437 } // namespace ui
443 438
444 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 439 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ui/android/context_provider_factory.h ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698