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

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

Issue 2806163004: Plumbing input event latency reporting through Mus GPU. (Closed)
Patch Set: Inline LatencyTracker in DIsplayOutputService. Created 3 years, 8 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/ipc/in_process_command_buffer.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 uint64_t GenerateFenceSyncRelease() override; 67 uint64_t GenerateFenceSyncRelease() override;
68 bool IsFenceSyncRelease(uint64_t release) override; 68 bool IsFenceSyncRelease(uint64_t release) override;
69 bool IsFenceSyncFlushed(uint64_t release) override; 69 bool IsFenceSyncFlushed(uint64_t release) override;
70 bool IsFenceSyncFlushReceived(uint64_t release) override; 70 bool IsFenceSyncFlushReceived(uint64_t release) override;
71 bool IsFenceSyncReleased(uint64_t release) override; 71 bool IsFenceSyncReleased(uint64_t release) override;
72 void SignalSyncToken(const gpu::SyncToken& sync_token, 72 void SignalSyncToken(const gpu::SyncToken& sync_token,
73 const base::Closure& callback) override; 73 const base::Closure& callback) override;
74 void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override; 74 void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override;
75 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override; 75 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override;
76 int32_t GetExtraCommandBufferData() const override; 76 int32_t GetExtraCommandBufferData() const override;
77 void AddLatencyInfo(
78 const std::vector<ui::LatencyInfo>& latency_info) override;
77 79
78 private: 80 private:
79 bool Send(IPC::Message* msg); 81 bool Send(IPC::Message* msg);
80 void UpdateState(const gpu::CommandBuffer::State& state, bool success); 82 void UpdateState(const gpu::CommandBuffer::State& state, bool success);
81 83
82 // 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.
83 void TryUpdateState(); 85 void TryUpdateState();
84 86
85 // The shared memory area used to update state. 87 // The shared memory area used to update state.
86 gpu::CommandBufferSharedState* shared_state() const; 88 gpu::CommandBufferSharedState* shared_state() const;
(...skipping 18 matching lines...) Expand all
105 uint64_t flushed_fence_sync_release_; 107 uint64_t flushed_fence_sync_release_;
106 uint64_t validated_fence_sync_release_; 108 uint64_t validated_fence_sync_release_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 110 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
109 }; 111 };
110 112
111 } // namespace proxy 113 } // namespace proxy
112 } // namespace ppapi 114 } // namespace ppapi
113 115
114 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 116 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « gpu/ipc/in_process_command_buffer.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698