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

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

Issue 2295923002: gfx: Struct traits for GpuMemoryBufferId and GpuMemoryBufferType. (Closed)
Patch Set: fix build Created 4 years, 3 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 | « services/ui/public/interfaces/gpu_service.mojom ('k') | services/ui/ws/gpu_service_proxy.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 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void OnGpuChannelEstablished(const EstablishGpuChannelCallback& callback, 44 void OnGpuChannelEstablished(const EstablishGpuChannelCallback& callback,
45 int32_t client_id, 45 int32_t client_id,
46 mojo::ScopedMessagePipeHandle channel_handle); 46 mojo::ScopedMessagePipeHandle channel_handle);
47 void OnInternalGpuChannelEstablished( 47 void OnInternalGpuChannelEstablished(
48 mojo::ScopedMessagePipeHandle channel_handle); 48 mojo::ScopedMessagePipeHandle channel_handle);
49 49
50 // mojom::GpuService overrides: 50 // mojom::GpuService overrides:
51 void EstablishGpuChannel( 51 void EstablishGpuChannel(
52 const EstablishGpuChannelCallback& callback) override; 52 const EstablishGpuChannelCallback& callback) override;
53 void CreateGpuMemoryBuffer( 53 void CreateGpuMemoryBuffer(
54 mojom::GpuMemoryBufferIdPtr id, 54 gfx::GpuMemoryBufferId id,
55 const gfx::Size& size, 55 const gfx::Size& size,
56 gfx::BufferFormat format, 56 gfx::BufferFormat format,
57 gfx::BufferUsage usage, 57 gfx::BufferUsage usage,
58 uint64_t surface_id, 58 uint64_t surface_id,
59 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) 59 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback)
60 override; 60 override;
61 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, 61 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
62 const gpu::SyncToken& sync_token) override; 62 const gpu::SyncToken& sync_token) override;
63 63
64 // gpu::GpuChannelHostFactory overrides: 64 // gpu::GpuChannelHostFactory overrides:
65 bool IsMainThread() override; 65 bool IsMainThread() override;
66 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; 66 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
67 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 67 std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
68 size_t size) override; 68 size_t size) override;
69 69
70 GpuServiceProxyDelegate* delegate_; 70 GpuServiceProxyDelegate* delegate_;
71 int32_t next_client_id_; 71 int32_t next_client_id_;
72 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 72 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
73 mojom::GpuServiceInternalPtr gpu_service_; 73 mojom::GpuServiceInternalPtr gpu_service_;
74 mojo::BindingSet<mojom::GpuService> bindings_; 74 mojo::BindingSet<mojom::GpuService> bindings_;
75 gpu::GPUInfo gpu_info_; 75 gpu::GPUInfo gpu_info_;
76 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; 76 scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
77 base::WaitableEvent shutdown_event_; 77 base::WaitableEvent shutdown_event_;
78 std::unique_ptr<base::Thread> io_thread_; 78 std::unique_ptr<base::Thread> io_thread_;
79 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_; 79 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy); 81 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy);
82 }; 82 };
83 83
84 } // namespace ws 84 } // namespace ws
85 } // namespace ui 85 } // namespace ui
86 86
87 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ 87 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/gpu_service.mojom ('k') | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698