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

Side by Side Diff: components/mus/surfaces/ozone_gpu_memory_buffer_manager.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACES_OZONE_H_
6 #define COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACES_OZONE_H_
7
8 #include "base/macros.h"
9 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
10
11 namespace mus {
12
13 class OzoneGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
14 public:
15 OzoneGpuMemoryBufferManager();
16 ~OzoneGpuMemoryBufferManager() override;
17
18 // gpu::GpuMemoryBufferManager:
19 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
20 const gfx::Size& size,
21 gfx::BufferFormat format,
22 gfx::BufferUsage usage,
23 gpu::SurfaceHandle surface_handle) override;
24 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
25 const gfx::GpuMemoryBufferHandle& handle,
26 const gfx::Size& size,
27 gfx::BufferFormat format) override;
28 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
29 ClientBuffer buffer) override;
30 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
31 const gpu::SyncToken& sync_token) override;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(OzoneGpuMemoryBufferManager);
35 };
36
37 } // namespace mus
38
39 #endif // COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACES_OZONE_H_
OLDNEW
« no previous file with comments | « components/mus/surfaces/display_compositor.cc ('k') | components/mus/surfaces/ozone_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698