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

Side by Side Diff: components/mus/gles2/command_buffer_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GLES2_COMMAND_BUFFER_IMPL_H_ 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void MakeProgress( 52 void MakeProgress(
53 int32_t last_get_offset, 53 int32_t last_get_offset,
54 const mojom::CommandBuffer::MakeProgressCallback& callback) override; 54 const mojom::CommandBuffer::MakeProgressCallback& callback) override;
55 void RegisterTransferBuffer(int32_t id, 55 void RegisterTransferBuffer(int32_t id,
56 mojo::ScopedSharedBufferHandle transfer_buffer, 56 mojo::ScopedSharedBufferHandle transfer_buffer,
57 uint32_t size) override; 57 uint32_t size) override;
58 void DestroyTransferBuffer(int32_t id) override; 58 void DestroyTransferBuffer(int32_t id) override;
59 void CreateImage(int32_t id, 59 void CreateImage(int32_t id,
60 mojo::ScopedHandle memory_handle, 60 mojo::ScopedHandle memory_handle,
61 int32_t type, 61 int32_t type,
62 mojo::SizePtr size, 62 const gfx::Size& size,
63 int32_t format, 63 int32_t format,
64 int32_t internal_format) override; 64 int32_t internal_format) override;
65 void DestroyImage(int32_t id) override; 65 void DestroyImage(int32_t id) override;
66 void CreateStreamTexture( 66 void CreateStreamTexture(
67 uint32_t client_texture_id, 67 uint32_t client_texture_id,
68 const mojom::CommandBuffer::CreateStreamTextureCallback& callback 68 const mojom::CommandBuffer::CreateStreamTextureCallback& callback
69 ) override; 69 ) override;
70 void TakeFrontBuffer(const gpu::Mailbox& mailbox) override; 70 void TakeFrontBuffer(const gpu::Mailbox& mailbox) override;
71 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, bool is_lost) override; 71 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, bool is_lost) override;
72 void SignalQuery(uint32_t query, uint32_t signal_id) override; 72 void SignalQuery(uint32_t query, uint32_t signal_id) override;
(...skipping 21 matching lines...) Expand all
94 int32_t last_get_offset, 94 int32_t last_get_offset,
95 const base::Callback<void(const gpu::CommandBuffer::State&)>& callback); 95 const base::Callback<void(const gpu::CommandBuffer::State&)>& callback);
96 bool RegisterTransferBufferOnGpuThread( 96 bool RegisterTransferBufferOnGpuThread(
97 int32_t id, 97 int32_t id,
98 mojo::ScopedSharedBufferHandle transfer_buffer, 98 mojo::ScopedSharedBufferHandle transfer_buffer,
99 uint32_t size); 99 uint32_t size);
100 bool DestroyTransferBufferOnGpuThread(int32_t id); 100 bool DestroyTransferBufferOnGpuThread(int32_t id);
101 bool CreateImageOnGpuThread(int32_t id, 101 bool CreateImageOnGpuThread(int32_t id,
102 mojo::ScopedHandle memory_handle, 102 mojo::ScopedHandle memory_handle,
103 int32_t type, 103 int32_t type,
104 mojo::SizePtr size, 104 const gfx::Size& size,
105 int32_t format, 105 int32_t format,
106 int32_t internal_format); 106 int32_t internal_format);
107 bool DestroyImageOnGpuThread(int32_t id); 107 bool DestroyImageOnGpuThread(int32_t id);
108 108
109 void BindToRequest(mojo::InterfaceRequest<CommandBuffer> request); 109 void BindToRequest(mojo::InterfaceRequest<CommandBuffer> request);
110 110
111 void OnConnectionError(); 111 void OnConnectionError();
112 bool DeleteOnGpuThread(); 112 bool DeleteOnGpuThread();
113 void DeleteOnGpuThread2(); 113 void DeleteOnGpuThread2();
114 114
115 scoped_refptr<GpuState> gpu_state_; 115 scoped_refptr<GpuState> gpu_state_;
116 std::unique_ptr<CommandBufferDriver> driver_; 116 std::unique_ptr<CommandBufferDriver> driver_;
117 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_; 117 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_;
118 mojom::CommandBufferClientPtr client_; 118 mojom::CommandBufferClientPtr client_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 120 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
121 }; 121 };
122 122
123 } // namespace mus 123 } // namespace mus
124 124
125 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 125 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698