| OLD | NEW |
| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 int32_t format, | 59 int32_t format, |
| 60 int32_t internal_format) override; | 60 int32_t internal_format) override; |
| 61 void DestroyImage(int32_t id) override; | 61 void DestroyImage(int32_t id) override; |
| 62 | 62 |
| 63 bool InitializeHelper( | 63 bool InitializeHelper( |
| 64 mojom::CommandBufferSyncClientPtr sync_client, | 64 mojom::CommandBufferSyncClientPtr sync_client, |
| 65 mojom::CommandBufferLostContextObserverPtr loss_observer, | 65 mojom::CommandBufferLostContextObserverPtr loss_observer, |
| 66 mojo::ScopedSharedBufferHandle shared_state, | 66 mojo::ScopedSharedBufferHandle shared_state, |
| 67 mojo::Array<int32_t> attribs); | 67 mojo::Array<int32_t> attribs); |
| 68 bool SetGetBufferHelper(int32_t buffer); | 68 bool SetGetBufferHelper(int32_t buffer); |
| 69 bool FlushHelper(int32_t put_offset); | 69 bool FlushHelper(int32_t put_offset, uint32_t order_num); |
| 70 bool MakeProgressHelper(int32_t last_get_offset); | 70 bool MakeProgressHelper(int32_t last_get_offset); |
| 71 bool RegisterTransferBufferHelper( | 71 bool RegisterTransferBufferHelper( |
| 72 int32_t id, | 72 int32_t id, |
| 73 mojo::ScopedSharedBufferHandle transfer_buffer, | 73 mojo::ScopedSharedBufferHandle transfer_buffer, |
| 74 uint32_t size); | 74 uint32_t size); |
| 75 bool DestroyTransferBufferHelper(int32_t id); | 75 bool DestroyTransferBufferHelper(int32_t id); |
| 76 bool RetireSyncPointHelper(uint32_t sync_point); | 76 bool RetireSyncPointHelper(uint32_t sync_point); |
| 77 bool EchoHelper( | 77 bool EchoHelper( |
| 78 const tracked_objects::Location& from_here, | 78 const tracked_objects::Location& from_here, |
| 79 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner, | 79 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 98 scoped_ptr<mojo::Binding<CommandBuffer>> binding_; | 98 scoped_ptr<mojo::Binding<CommandBuffer>> binding_; |
| 99 CommandBufferImplObserver* observer_; | 99 CommandBufferImplObserver* observer_; |
| 100 base::WeakPtrFactory<CommandBufferImpl> weak_ptr_factory_; | 100 base::WeakPtrFactory<CommandBufferImpl> weak_ptr_factory_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 102 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace mus | 105 } // namespace mus |
| 106 | 106 |
| 107 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ | 107 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |