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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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 | « ppapi/proxy/ppapi_command_buffer_proxy.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 <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 16 matching lines...) Expand all
27 27
28 class SkBitmap; 28 class SkBitmap;
29 29
30 namespace base { 30 namespace base {
31 class MessageLoopProxy; 31 class MessageLoopProxy;
32 class RunLoop; 32 class RunLoop;
33 } 33 }
34 34
35 namespace cc { 35 namespace cc {
36 class ContextProvider; 36 class ContextProvider;
37 class GpuMemoryBufferManager;
37 class Layer; 38 class Layer;
38 class LayerTreeDebugState; 39 class LayerTreeDebugState;
39 class LayerTreeHost; 40 class LayerTreeHost;
40 class SharedBitmapManager; 41 class SharedBitmapManager;
41 class SurfaceIdAllocator; 42 class SurfaceIdAllocator;
42 } 43 }
43 44
44 namespace gfx { 45 namespace gfx {
45 class Rect; 46 class Rect;
46 class Size; 47 class Size;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Destroys per-compositor data. 88 // Destroys per-compositor data.
88 virtual void RemoveCompositor(Compositor* compositor) = 0; 89 virtual void RemoveCompositor(Compositor* compositor) = 0;
89 90
90 // When true, the factory uses test contexts that do not do real GL 91 // When true, the factory uses test contexts that do not do real GL
91 // operations. 92 // operations.
92 virtual bool DoesCreateTestContexts() = 0; 93 virtual bool DoesCreateTestContexts() = 0;
93 94
94 // Gets the shared bitmap manager for software mode. 95 // Gets the shared bitmap manager for software mode.
95 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
96 97
98 // Gets the GPU memory buffer manager.
99 virtual cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
100
97 // Gets the compositor message loop, or NULL if not using threaded 101 // Gets the compositor message loop, or NULL if not using threaded
98 // compositing. 102 // compositing.
99 virtual base::MessageLoopProxy* GetCompositorMessageLoop() = 0; 103 virtual base::MessageLoopProxy* GetCompositorMessageLoop() = 0;
100 104
101 // Creates a Surface ID allocator with a new namespace. 105 // Creates a Surface ID allocator with a new namespace.
102 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; 106 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0;
103 }; 107 };
104 108
105 // This class represents a lock on the compositor, that can be used to prevent 109 // This class represents a lock on the compositor, that can be used to prevent
106 // commits to the compositor tree while we're waiting for an asynchronous 110 // commits to the compositor tree while we're waiting for an asynchronous
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 LayerAnimatorCollection layer_animator_collection_; 340 LayerAnimatorCollection layer_animator_collection_;
337 341
338 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 342 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
339 343
340 DISALLOW_COPY_AND_ASSIGN(Compositor); 344 DISALLOW_COPY_AND_ASSIGN(Compositor);
341 }; 345 };
342 346
343 } // namespace ui 347 } // namespace ui
344 348
345 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 349 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698