| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LOCAL_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool FlushOnGpuThread(int32_t put_offset, uint32_t order_num); | 117 bool FlushOnGpuThread(int32_t put_offset, uint32_t order_num); |
| 118 bool SetGetBufferOnGpuThread(int32_t buffer); | 118 bool SetGetBufferOnGpuThread(int32_t buffer); |
| 119 bool RegisterTransferBufferOnGpuThread( | 119 bool RegisterTransferBufferOnGpuThread( |
| 120 int32_t id, | 120 int32_t id, |
| 121 mojo::ScopedSharedBufferHandle transfer_buffer, | 121 mojo::ScopedSharedBufferHandle transfer_buffer, |
| 122 uint32_t size); | 122 uint32_t size); |
| 123 bool DestroyTransferBufferOnGpuThread(int32_t id); | 123 bool DestroyTransferBufferOnGpuThread(int32_t id); |
| 124 bool CreateImageOnGpuThread(int32_t id, | 124 bool CreateImageOnGpuThread(int32_t id, |
| 125 mojo::ScopedHandle memory_handle, | 125 mojo::ScopedHandle memory_handle, |
| 126 int32_t type, | 126 int32_t type, |
| 127 mojo::SizePtr size, | 127 const gfx::Size& size, |
| 128 int32_t format, | 128 int32_t format, |
| 129 int32_t internal_format); | 129 int32_t internal_format); |
| 130 bool CreateImageNativeOzoneOnGpuThread(int32_t id, | 130 bool CreateImageNativeOzoneOnGpuThread(int32_t id, |
| 131 int32_t type, | 131 int32_t type, |
| 132 gfx::Size size, | 132 gfx::Size size, |
| 133 gfx::BufferFormat format, | 133 gfx::BufferFormat format, |
| 134 uint32_t internal_format, | 134 uint32_t internal_format, |
| 135 ui::NativePixmap* pixmap); | 135 ui::NativePixmap* pixmap); |
| 136 bool DestroyImageOnGpuThread(int32_t id); | 136 bool DestroyImageOnGpuThread(int32_t id); |
| 137 bool MakeProgressOnGpuThread(base::WaitableEvent* event, | 137 bool MakeProgressOnGpuThread(base::WaitableEvent* event, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // This weak factory will be invalidated in the client thread, so all weak | 171 // This weak factory will be invalidated in the client thread, so all weak |
| 172 // pointers have to be dereferenced in the client thread too. | 172 // pointers have to be dereferenced in the client thread too. |
| 173 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 173 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 175 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace mus | 178 } // namespace mus |
| 179 | 179 |
| 180 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 180 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| OLD | NEW |