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

Side by Side Diff: services/ui/ws/gpu_service_proxy.h

Issue 2479043002: mus: Get the gpu memory buffer from the window server. (Closed)
Patch Set: . 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ 5 #ifndef SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
6 #define SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ 6 #define SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
7 7
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 mojo::ScopedMessagePipeHandle channel_handle); 49 mojo::ScopedMessagePipeHandle channel_handle);
50 50
51 // mojom::GpuService overrides: 51 // mojom::GpuService overrides:
52 void EstablishGpuChannel( 52 void EstablishGpuChannel(
53 const EstablishGpuChannelCallback& callback) override; 53 const EstablishGpuChannelCallback& callback) override;
54 void CreateGpuMemoryBuffer( 54 void CreateGpuMemoryBuffer(
55 gfx::GpuMemoryBufferId id, 55 gfx::GpuMemoryBufferId id,
56 const gfx::Size& size, 56 const gfx::Size& size,
57 gfx::BufferFormat format, 57 gfx::BufferFormat format,
58 gfx::BufferUsage usage, 58 gfx::BufferUsage usage,
59 uint64_t surface_id,
60 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) 59 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback)
61 override; 60 override;
62 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 61 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
63 const gpu::SyncToken& sync_token) override; 62 const gpu::SyncToken& sync_token) override;
64 63
65 // gpu::GpuChannelHostFactory overrides: 64 // gpu::GpuChannelHostFactory overrides:
66 bool IsMainThread() override; 65 bool IsMainThread() override;
67 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; 66 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
68 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 67 std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
69 size_t size) override; 68 size_t size) override;
(...skipping 10 matching lines...) Expand all
80 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_; 79 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_;
81 GpuMain gpu_main_; 80 GpuMain gpu_main_;
82 81
83 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy); 82 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy);
84 }; 83 };
85 84
86 } // namespace ws 85 } // namespace ws
87 } // namespace ui 86 } // namespace ui
88 87
89 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ 88 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698