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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool IsFenceSyncRelease(uint64_t release) override; | 77 bool IsFenceSyncRelease(uint64_t release) override; |
78 bool IsFenceSyncFlushed(uint64_t release) override; | 78 bool IsFenceSyncFlushed(uint64_t release) override; |
79 bool IsFenceSyncFlushReceived(uint64_t release) override; | 79 bool IsFenceSyncFlushReceived(uint64_t release) override; |
80 void SignalSyncToken(const gpu::SyncToken& sync_token, | 80 void SignalSyncToken(const gpu::SyncToken& sync_token, |
81 const base::Closure& callback) override; | 81 const base::Closure& callback) override; |
82 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 82 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
83 | 83 |
84 private: | 84 private: |
85 void PumpCommands(); | 85 void PumpCommands(); |
86 | 86 |
87 void OnResize(gfx::Size size, float scale_factor); | |
88 void OnUpdateVSyncParameters(const base::TimeTicks timebase, | 87 void OnUpdateVSyncParameters(const base::TimeTicks timebase, |
89 const base::TimeDelta interval); | 88 const base::TimeDelta interval); |
90 bool OnWaitSyncPoint(uint32_t sync_point); | 89 bool OnWaitSyncPoint(uint32_t sync_point); |
91 void OnFenceSyncRelease(uint64_t release); | 90 void OnFenceSyncRelease(uint64_t release); |
92 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, | 91 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, |
93 uint64_t command_buffer_id, | 92 uint64_t command_buffer_id, |
94 uint64_t release); | 93 uint64_t release); |
95 void OnParseError(); | 94 void OnParseError(); |
96 void OnContextLost(uint32_t reason); | 95 void OnContextLost(uint32_t reason); |
97 void OnSyncPointRetired(); | 96 void OnSyncPointRetired(); |
(...skipping 10 matching lines...) Expand all Loading... |
108 uint64_t next_fence_sync_release_; | 107 uint64_t next_fence_sync_release_; |
109 | 108 |
110 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 109 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 111 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace mus | 114 } // namespace mus |
116 | 115 |
117 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 116 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
OLD | NEW |