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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.h

Issue 2383753002: gpu: Add GpuFence framework.
Patch Set: rebase Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 5 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void EnsureWorkVisible() override; 69 void EnsureWorkVisible() override;
70 gpu::CommandBufferNamespace GetNamespaceID() const override; 70 gpu::CommandBufferNamespace GetNamespaceID() const override;
71 gpu::CommandBufferId GetCommandBufferID() const override; 71 gpu::CommandBufferId GetCommandBufferID() const override;
72 uint64_t GenerateFenceSyncRelease() override; 72 uint64_t GenerateFenceSyncRelease() override;
73 bool IsFenceSyncRelease(uint64_t release) override; 73 bool IsFenceSyncRelease(uint64_t release) override;
74 bool IsFenceSyncFlushed(uint64_t release) override; 74 bool IsFenceSyncFlushed(uint64_t release) override;
75 bool IsFenceSyncFlushReceived(uint64_t release) override; 75 bool IsFenceSyncFlushReceived(uint64_t release) override;
76 void SignalSyncToken(const gpu::SyncToken& sync_token, 76 void SignalSyncToken(const gpu::SyncToken& sync_token,
77 const base::Closure& callback) override; 77 const base::Closure& callback) override;
78 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 78 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
79 int32_t CreateFence(ClientFence fence) override;
80 void DestroyFence(int32_t id) override;
79 int32_t GetExtraCommandBufferData() const override; 81 int32_t GetExtraCommandBufferData() const override;
80 82
81 private: 83 private:
82 bool Send(IPC::Message* msg); 84 bool Send(IPC::Message* msg);
83 void UpdateState(const gpu::CommandBuffer::State& state, bool success); 85 void UpdateState(const gpu::CommandBuffer::State& state, bool success);
84 86
85 // Try to read an updated copy of the state from shared memory. 87 // Try to read an updated copy of the state from shared memory.
86 void TryUpdateState(); 88 void TryUpdateState();
87 89
88 // The shared memory area used to update state. 90 // The shared memory area used to update state.
(...skipping 19 matching lines...) Expand all
108 uint64_t flushed_fence_sync_release_; 110 uint64_t flushed_fence_sync_release_;
109 uint64_t validated_fence_sync_release_; 111 uint64_t validated_fence_sync_release_;
110 112
111 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 113 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
112 }; 114 };
113 115
114 } // namespace proxy 116 } // namespace proxy
115 } // namespace ppapi 117 } // namespace ppapi
116 118
117 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 119 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698