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

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

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
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;
38 class Layer; 37 class Layer;
39 class LayerTreeDebugState; 38 class LayerTreeDebugState;
40 class LayerTreeHost; 39 class LayerTreeHost;
41 class SharedBitmapManager; 40 class SharedBitmapManager;
42 class SurfaceIdAllocator; 41 class SurfaceIdAllocator;
43 } 42 }
44 43
45 namespace gfx { 44 namespace gfx {
46 class Rect; 45 class Rect;
47 class Size; 46 class Size;
48 } 47 }
49 48
50 namespace gpu { 49 namespace gpu {
50 class GpuMemoryBufferManager;
51 struct Mailbox; 51 struct Mailbox;
52 } 52 }
53 53
54 namespace ui { 54 namespace ui {
55 55
56 class Compositor; 56 class Compositor;
57 class CompositorVSyncManager; 57 class CompositorVSyncManager;
58 class Layer; 58 class Layer;
59 class Reflector; 59 class Reflector;
60 class Texture; 60 class Texture;
(...skipping 28 matching lines...) Expand all
89 virtual void RemoveCompositor(Compositor* compositor) = 0; 89 virtual void RemoveCompositor(Compositor* compositor) = 0;
90 90
91 // 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
92 // operations. 92 // operations.
93 virtual bool DoesCreateTestContexts() = 0; 93 virtual bool DoesCreateTestContexts() = 0;
94 94
95 // Gets the shared bitmap manager for software mode. 95 // Gets the shared bitmap manager for software mode.
96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
97 97
98 // Gets the GPU memory buffer manager. 98 // Gets the GPU memory buffer manager.
99 virtual cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 99 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
100 100
101 // Gets the compositor message loop, or NULL if not using threaded 101 // Gets the compositor message loop, or NULL if not using threaded
102 // compositing. 102 // compositing.
103 virtual base::MessageLoopProxy* GetCompositorMessageLoop() = 0; 103 virtual base::MessageLoopProxy* GetCompositorMessageLoop() = 0;
104 104
105 // Creates a Surface ID allocator with a new namespace. 105 // Creates a Surface ID allocator with a new namespace.
106 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; 106 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0;
107 }; 107 };
108 108
109 // 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
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 LayerAnimatorCollection layer_animator_collection_; 338 LayerAnimatorCollection layer_animator_collection_;
339 339
340 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 340 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
341 341
342 DISALLOW_COPY_AND_ASSIGN(Compositor); 342 DISALLOW_COPY_AND_ASSIGN(Compositor);
343 }; 343 };
344 344
345 } // namespace ui 345 } // namespace ui
346 346
347 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 347 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « tools/valgrind/gtest_exclude/ui_base_unittests.gtest.txt ('k') | ui/gl/gl_bindings_skia_in_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698