Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: mojo/gles2/command_buffer_client_impl.h

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted mojo readme, changed wait() to take a pointer Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/gpu.gyp ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void RetireSyncPoint(uint32 sync_point) override; 69 void RetireSyncPoint(uint32 sync_point) override;
70 void SignalSyncPoint(uint32 sync_point, 70 void SignalSyncPoint(uint32 sync_point,
71 const base::Closure& callback) override; 71 const base::Closure& callback) override;
72 void SignalQuery(uint32 query, const base::Closure& callback) override; 72 void SignalQuery(uint32 query, const base::Closure& callback) override;
73 void SetSurfaceVisible(bool visible) override; 73 void SetSurfaceVisible(bool visible) override;
74 uint32 CreateStreamTexture(uint32 texture_id) override; 74 uint32 CreateStreamTexture(uint32 texture_id) override;
75 void SetLock(base::Lock*) override; 75 void SetLock(base::Lock*) override;
76 bool IsGpuChannelLost() override; 76 bool IsGpuChannelLost() override;
77 gpu::CommandBufferNamespace GetNamespaceID() const override; 77 gpu::CommandBufferNamespace GetNamespaceID() const override;
78 uint64_t GetCommandBufferID() const override; 78 uint64_t GetCommandBufferID() const override;
79 uint64_t GenerateFenceSyncRelease() override;
80 bool IsFenceSyncRelease(uint64_t release) override;
81 bool IsFenceSyncFlushed(uint64_t release) override;
79 82
80 private: 83 private:
81 class SyncClientImpl; 84 class SyncClientImpl;
82 class SyncPointClientImpl; 85 class SyncPointClientImpl;
83 86
84 // mojo::CommandBufferLostContextObserver implementation: 87 // mojo::CommandBufferLostContextObserver implementation:
85 void DidLoseContext(int32_t lost_reason) override; 88 void DidLoseContext(int32_t lost_reason) override;
86 89
87 void TryUpdateState(); 90 void TryUpdateState();
88 void MakeProgressAndUpdateState(); 91 void MakeProgressAndUpdateState();
(...skipping 10 matching lines...) Expand all
99 gpu::Capabilities capabilities_; 102 gpu::Capabilities capabilities_;
100 State last_state_; 103 State last_state_;
101 mojo::ScopedSharedBufferHandle shared_state_handle_; 104 mojo::ScopedSharedBufferHandle shared_state_handle_;
102 gpu::CommandBufferSharedState* shared_state_; 105 gpu::CommandBufferSharedState* shared_state_;
103 int32_t last_put_offset_; 106 int32_t last_put_offset_;
104 int32_t next_transfer_buffer_id_; 107 int32_t next_transfer_buffer_id_;
105 108
106 // Image IDs are allocated in sequence. 109 // Image IDs are allocated in sequence.
107 int next_image_id_; 110 int next_image_id_;
108 111
112 uint64_t next_fence_sync_release_;
113 uint64_t flushed_fence_sync_release_;
114
109 const MojoAsyncWaiter* async_waiter_; 115 const MojoAsyncWaiter* async_waiter_;
110 }; 116 };
111 117
112 } // gles2 118 } // gles2
113 119
114 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 120 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/gpu.gyp ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698