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

Side by Side Diff: components/mus/gles2/command_buffer_local.h

Issue 1559893003: Added method to synchronize command buffers within GpuControl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SynchronizeCommandBuffer() -> EnsureWorkVisible() Created 4 years, 11 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 | « no previous file | components/mus/gles2/command_buffer_local.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 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 <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 unsigned internalformat, 67 unsigned internalformat,
68 unsigned usage) override; 68 unsigned usage) override;
69 uint32_t InsertSyncPoint() override; 69 uint32_t InsertSyncPoint() override;
70 uint32_t InsertFutureSyncPoint() override; 70 uint32_t InsertFutureSyncPoint() override;
71 void RetireSyncPoint(uint32_t sync_point) override; 71 void RetireSyncPoint(uint32_t sync_point) override;
72 void SignalSyncPoint(uint32_t sync_point, 72 void SignalSyncPoint(uint32_t sync_point,
73 const base::Closure& callback) override; 73 const base::Closure& callback) override;
74 void SignalQuery(uint32_t query, const base::Closure& callback) override; 74 void SignalQuery(uint32_t query, const base::Closure& callback) override;
75 void SetLock(base::Lock*) override; 75 void SetLock(base::Lock*) override;
76 bool IsGpuChannelLost() override; 76 bool IsGpuChannelLost() override;
77 void EnsureWorkVisible() override;
77 gpu::CommandBufferNamespace GetNamespaceID() const override; 78 gpu::CommandBufferNamespace GetNamespaceID() const override;
78 uint64_t GetCommandBufferID() const override; 79 uint64_t GetCommandBufferID() const override;
79 int32_t GetExtraCommandBufferData() const override; 80 int32_t GetExtraCommandBufferData() const override;
80 uint64_t GenerateFenceSyncRelease() override; 81 uint64_t GenerateFenceSyncRelease() override;
81 bool IsFenceSyncRelease(uint64_t release) override; 82 bool IsFenceSyncRelease(uint64_t release) override;
82 bool IsFenceSyncFlushed(uint64_t release) override; 83 bool IsFenceSyncFlushed(uint64_t release) override;
83 bool IsFenceSyncFlushReceived(uint64_t release) override; 84 bool IsFenceSyncFlushReceived(uint64_t release) override;
84 void SignalSyncToken(const gpu::SyncToken& sync_token, 85 void SignalSyncToken(const gpu::SyncToken& sync_token,
85 const base::Closure& callback) override; 86 const base::Closure& callback) override;
86 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 87 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
(...skipping 26 matching lines...) Expand all
113 uint64_t next_fence_sync_release_; 114 uint64_t next_fence_sync_release_;
114 115
115 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; 116 base::WeakPtrFactory<CommandBufferLocal> weak_factory_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); 118 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal);
118 }; 119 };
119 120
120 } // namespace mus 121 } // namespace mus
121 122
122 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ 123 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/gles2/command_buffer_local.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698