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

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

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return False on invalid stream id Created 5 years 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 | « mojo/gles2/command_buffer_client_impl.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.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 (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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool IsGpuChannelLost() override; 68 bool IsGpuChannelLost() override;
69 gpu::CommandBufferNamespace GetNamespaceID() const override; 69 gpu::CommandBufferNamespace GetNamespaceID() const override;
70 uint64_t GetCommandBufferID() const override; 70 uint64_t GetCommandBufferID() const override;
71 uint64_t GenerateFenceSyncRelease() override; 71 uint64_t GenerateFenceSyncRelease() override;
72 bool IsFenceSyncRelease(uint64_t release) override; 72 bool IsFenceSyncRelease(uint64_t release) override;
73 bool IsFenceSyncFlushed(uint64_t release) override; 73 bool IsFenceSyncFlushed(uint64_t release) override;
74 bool IsFenceSyncFlushReceived(uint64_t release) override; 74 bool IsFenceSyncFlushReceived(uint64_t release) override;
75 void SignalSyncToken(const gpu::SyncToken& sync_token, 75 void SignalSyncToken(const gpu::SyncToken& sync_token,
76 const base::Closure& callback) override; 76 const base::Closure& callback) override;
77 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 77 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
78 int32_t GetExtraCommandBufferData() const override;
78 79
79 private: 80 private:
80 bool Send(IPC::Message* msg); 81 bool Send(IPC::Message* msg);
81 void UpdateState(const gpu::CommandBuffer::State& state, bool success); 82 void UpdateState(const gpu::CommandBuffer::State& state, bool success);
82 83
83 // Try to read an updated copy of the state from shared memory. 84 // Try to read an updated copy of the state from shared memory.
84 void TryUpdateState(); 85 void TryUpdateState();
85 86
86 // The shared memory area used to update state. 87 // The shared memory area used to update state.
87 gpu::CommandBufferSharedState* shared_state() const; 88 gpu::CommandBufferSharedState* shared_state() const;
(...skipping 17 matching lines...) Expand all
105 uint64_t pending_fence_sync_release_; 106 uint64_t pending_fence_sync_release_;
106 uint64_t flushed_fence_sync_release_; 107 uint64_t flushed_fence_sync_release_;
107 108
108 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 109 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
109 }; 110 };
110 111
111 } // namespace proxy 112 } // namespace proxy
112 } // namespace ppapi 113 } // namespace ppapi
113 114
114 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 115 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698