| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 int32_t id, | 119 int32_t id, |
| 120 mojo::ScopedSharedBufferHandle transfer_buffer, | 120 mojo::ScopedSharedBufferHandle transfer_buffer, |
| 121 uint32_t size); | 121 uint32_t size); |
| 122 bool DestroyTransferBufferOnGpuThread(int32_t id); | 122 bool DestroyTransferBufferOnGpuThread(int32_t id); |
| 123 bool CreateImageOnGpuThread(int32_t id, | 123 bool CreateImageOnGpuThread(int32_t id, |
| 124 mojo::ScopedHandle memory_handle, | 124 mojo::ScopedHandle memory_handle, |
| 125 int32_t type, | 125 int32_t type, |
| 126 mojo::SizePtr size, | 126 mojo::SizePtr size, |
| 127 int32_t format, | 127 int32_t format, |
| 128 int32_t internal_format); | 128 int32_t internal_format); |
| 129 bool CreateImageNativeOzoneOnGpuThread(int32_t id, |
| 130 int32_t type, |
| 131 gfx::Size size, |
| 132 gfx::BufferFormat format, |
| 133 uint32_t internal_format, |
| 134 ui::NativePixmap* pixmap); |
| 129 bool DestroyImageOnGpuThread(int32_t id); | 135 bool DestroyImageOnGpuThread(int32_t id); |
| 130 bool MakeProgressOnGpuThread(base::WaitableEvent* event, | 136 bool MakeProgressOnGpuThread(base::WaitableEvent* event, |
| 131 gpu::CommandBuffer::State* state); | 137 gpu::CommandBuffer::State* state); |
| 132 bool DeleteOnGpuThread(base::WaitableEvent* event); | 138 bool DeleteOnGpuThread(base::WaitableEvent* event); |
| 133 bool SignalQueryOnGpuThread(uint32_t query_id, const base::Closure& callback); | 139 bool SignalQueryOnGpuThread(uint32_t query_id, const base::Closure& callback); |
| 134 | 140 |
| 135 // Helper functions are called in the client thread. | 141 // Helper functions are called in the client thread. |
| 136 void DidLoseContextOnClientThread(uint32_t reason); | 142 void DidLoseContextOnClientThread(uint32_t reason); |
| 137 void UpdateVSyncParametersOnClientThread(int64_t timebase, int64_t interval); | 143 void UpdateVSyncParametersOnClientThread(int64_t timebase, int64_t interval); |
| 138 void OnGpuCompletedSwapBuffersOnClientThread(gfx::SwapResult result); | 144 void OnGpuCompletedSwapBuffersOnClientThread(gfx::SwapResult result); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 162 // This weak factory will be invalidated in the client thread, so all weak | 168 // This weak factory will be invalidated in the client thread, so all weak |
| 163 // pointers have to be dereferenced in the client thread too. | 169 // pointers have to be dereferenced in the client thread too. |
| 164 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 170 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
| 165 | 171 |
| 166 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 172 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
| 167 }; | 173 }; |
| 168 | 174 |
| 169 } // namespace mus | 175 } // namespace mus |
| 170 | 176 |
| 171 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 177 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| OLD | NEW |