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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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 | « mojo/gles2/command_buffer_client_impl.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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 SharedMainThreadContextProvider() = 0; 89 SharedMainThreadContextProvider() = 0;
90 90
91 // Destroys per-compositor data. 91 // Destroys per-compositor data.
92 virtual void RemoveCompositor(Compositor* compositor) = 0; 92 virtual void RemoveCompositor(Compositor* compositor) = 0;
93 93
94 // When true, the factory uses test contexts that do not do real GL 94 // When true, the factory uses test contexts that do not do real GL
95 // operations. 95 // operations.
96 virtual bool DoesCreateTestContexts() = 0; 96 virtual bool DoesCreateTestContexts() = 0;
97 97
98 // Returns the OpenGL target to use for image textures. 98 // Returns the OpenGL target to use for image textures.
99 virtual uint32 GetImageTextureTarget(gfx::GpuMemoryBuffer::Format format, 99 virtual uint32 GetImageTextureTarget(gfx::BufferFormat format,
100 gfx::GpuMemoryBuffer::Usage usage) = 0; 100 gfx::BufferUsage usage) = 0;
101 101
102 // Gets the shared bitmap manager for software mode. 102 // Gets the shared bitmap manager for software mode.
103 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 103 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
104 104
105 // Gets the GPU memory buffer manager. 105 // Gets the GPU memory buffer manager.
106 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 106 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
107 107
108 // Gets the task graph runner. 108 // Gets the task graph runner.
109 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 109 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
110 110
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 cc::BeginFrameArgs missed_begin_frame_args_; 367 cc::BeginFrameArgs missed_begin_frame_args_;
368 368
369 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 369 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
370 370
371 DISALLOW_COPY_AND_ASSIGN(Compositor); 371 DISALLOW_COPY_AND_ASSIGN(Compositor);
372 }; 372 };
373 373
374 } // namespace ui 374 } // namespace ui
375 375
376 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 376 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698