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_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ |
6 #define COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ | 6 #define COMPONENTS_VIEW_MANAGER_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 30 matching lines...) Expand all Loading... |
41 void SetGetBuffer(int32_t buffer) override; | 41 void SetGetBuffer(int32_t buffer) override; |
42 void Flush(int32_t put_offset) override; | 42 void Flush(int32_t put_offset) override; |
43 void MakeProgress(int32_t last_get_offset) override; | 43 void MakeProgress(int32_t last_get_offset) override; |
44 void RegisterTransferBuffer(int32_t id, | 44 void RegisterTransferBuffer(int32_t id, |
45 mojo::ScopedSharedBufferHandle transfer_buffer, | 45 mojo::ScopedSharedBufferHandle transfer_buffer, |
46 uint32_t size) override; | 46 uint32_t size) override; |
47 void DestroyTransferBuffer(int32_t id) override; | 47 void DestroyTransferBuffer(int32_t id) override; |
48 void InsertSyncPoint(bool retire) override; | 48 void InsertSyncPoint(bool retire) override; |
49 void RetireSyncPoint(uint32_t sync_point) override; | 49 void RetireSyncPoint(uint32_t sync_point) override; |
50 void Echo(const mojo::Callback<void()>& callback) override; | 50 void Echo(const mojo::Callback<void()>& callback) override; |
| 51 void CreateImage(int32_t id, |
| 52 mojo::ScopedHandle memory_handle, |
| 53 int32_t type, |
| 54 mojo::SizePtr size, |
| 55 int32_t format, |
| 56 int32_t internal_format) override; |
| 57 void DestroyImage(int32_t id) override; |
51 | 58 |
52 void DidLoseContext(); | 59 void DidLoseContext(); |
53 void UpdateVSyncParameters(base::TimeTicks timebase, | 60 void UpdateVSyncParameters(base::TimeTicks timebase, |
54 base::TimeDelta interval); | 61 base::TimeDelta interval); |
55 | 62 |
56 void set_observer(CommandBufferImplObserver* observer) { | 63 void set_observer(CommandBufferImplObserver* observer) { |
57 observer_ = observer; | 64 observer_ = observer; |
58 } | 65 } |
59 | 66 |
60 private: | 67 private: |
(...skipping 14 matching lines...) Expand all Loading... |
75 mojo::Binding<CommandBuffer> binding_; | 82 mojo::Binding<CommandBuffer> binding_; |
76 CommandBufferImplObserver* observer_; | 83 CommandBufferImplObserver* observer_; |
77 | 84 |
78 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; | 85 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; |
79 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 86 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
80 }; | 87 }; |
81 | 88 |
82 } // namespace gles2 | 89 } // namespace gles2 |
83 | 90 |
84 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ | 91 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |