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

Side by Side Diff: components/mus/gpu/gpu_service_mus.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
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 COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ 5 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_
6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_
7 7
8 #include "components/mus/public/interfaces/gpu_memory_buffer.mojom.h" 8 #include "components/mus/public/interfaces/gpu_memory_buffer.mojom.h"
9 #include "components/mus/public/interfaces/gpu_service.mojom.h" 9 #include "components/mus/public/interfaces/gpu_service.mojom.h"
10 #include "gpu/ipc/common/surface_handle.h" 10 #include "gpu/ipc/common/surface_handle.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // mojom::GpuService overrides: 24 // mojom::GpuService overrides:
25 void EstablishGpuChannel( 25 void EstablishGpuChannel(
26 bool prempts, 26 bool prempts,
27 bool allow_view_command_buffers, 27 bool allow_view_command_buffers,
28 bool allow_real_time_streams, 28 bool allow_real_time_streams,
29 const mojom::GpuService::EstablishGpuChannelCallback& callback) override; 29 const mojom::GpuService::EstablishGpuChannelCallback& callback) override;
30 30
31 void CreateGpuMemoryBuffer( 31 void CreateGpuMemoryBuffer(
32 mojom::GpuMemoryBufferIdPtr id, 32 mojom::GpuMemoryBufferIdPtr id,
33 mojo::SizePtr size, 33 const gfx::Size& size,
34 mojom::BufferFormat format, 34 mojom::BufferFormat format,
35 mojom::BufferUsage usage, 35 mojom::BufferUsage usage,
36 uint64_t surface_id, 36 uint64_t surface_id,
37 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) 37 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback)
38 override; 38 override;
39 39
40 void CreateGpuMemoryBufferFromHandle( 40 void CreateGpuMemoryBufferFromHandle(
41 mojom::GpuMemoryBufferHandlePtr buffer_handle, 41 mojom::GpuMemoryBufferHandlePtr buffer_handle,
42 mojom::GpuMemoryBufferIdPtr id, 42 mojom::GpuMemoryBufferIdPtr id,
43 mojo::SizePtr size, 43 const gfx::Size& size,
44 mojom::BufferFormat format, 44 mojom::BufferFormat format,
45 const mojom::GpuService::CreateGpuMemoryBufferFromHandleCallback& 45 const mojom::GpuService::CreateGpuMemoryBufferFromHandleCallback&
46 callback) override; 46 callback) override;
47 47
48 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, 48 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id,
49 const gpu::SyncToken& sync_token) override; 49 const gpu::SyncToken& sync_token) override;
50 50
51 // GpuChannelManagerDelegate overrides: 51 // GpuChannelManagerDelegate overrides:
52 void DidCreateOffscreenContext(const GURL& active_url) override; 52 void DidCreateOffscreenContext(const GURL& active_url) override;
53 void DidDestroyChannel(int client_id) override; 53 void DidDestroyChannel(int client_id) override;
(...skipping 12 matching lines...) Expand all
66 #endif 66 #endif
67 void SetActiveURL(const GURL& url) override; 67 void SetActiveURL(const GURL& url) override;
68 68
69 private: 69 private:
70 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus); 70 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus);
71 }; 71 };
72 72
73 } // namespace mus 73 } // namespace mus
74 74
75 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ 75 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698