OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DRIVER_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 int32_t type, | 67 int32_t type, |
68 mojo::SizePtr size, | 68 mojo::SizePtr size, |
69 int32_t format, | 69 int32_t format, |
70 int32_t internal_format); | 70 int32_t internal_format); |
71 void DestroyImage(int32_t id); | 71 void DestroyImage(int32_t id); |
72 | 72 |
73 private: | 73 private: |
74 bool MakeCurrent(); | 74 bool MakeCurrent(); |
75 bool DoInitialize(mojo::ScopedSharedBufferHandle shared_state, | 75 bool DoInitialize(mojo::ScopedSharedBufferHandle shared_state, |
76 mojo::Array<int32_t> attribs); | 76 mojo::Array<int32_t> attribs); |
77 void OnResize(gfx::Size size, float scale_factor); | |
78 bool OnWaitSyncPoint(uint32_t sync_point); | 77 bool OnWaitSyncPoint(uint32_t sync_point); |
79 void OnFenceSyncRelease(uint64_t release); | 78 void OnFenceSyncRelease(uint64_t release); |
80 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, | 79 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, |
81 uint64_t command_buffer_id, | 80 uint64_t command_buffer_id, |
82 uint64_t release); | 81 uint64_t release); |
83 void OnSyncPointRetired(); | 82 void OnSyncPointRetired(); |
84 void OnParseError(); | 83 void OnParseError(); |
85 void OnContextLost(uint32_t reason); | 84 void OnContextLost(uint32_t reason); |
86 void DestroyDecoder(); | 85 void DestroyDecoder(); |
87 | 86 |
(...skipping 11 matching lines...) Expand all Loading... |
99 base::Callback<void(int32_t)> context_lost_callback_; | 98 base::Callback<void(int32_t)> context_lost_callback_; |
100 | 99 |
101 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; | 100 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; |
102 | 101 |
103 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); | 102 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); |
104 }; | 103 }; |
105 | 104 |
106 } // namespace mus | 105 } // namespace mus |
107 | 106 |
108 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 107 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
OLD | NEW |