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

Side by Side Diff: gpu/ipc/client/command_buffer_proxy_impl.h

Issue 1965253002: [Reland 2] Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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
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 GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 gpu::CommandBufferId GetCommandBufferID() const override; 109 gpu::CommandBufferId GetCommandBufferID() const override;
110 int32_t GetExtraCommandBufferData() const override; 110 int32_t GetExtraCommandBufferData() const override;
111 uint64_t GenerateFenceSyncRelease() override; 111 uint64_t GenerateFenceSyncRelease() override;
112 bool IsFenceSyncRelease(uint64_t release) override; 112 bool IsFenceSyncRelease(uint64_t release) override;
113 bool IsFenceSyncFlushed(uint64_t release) override; 113 bool IsFenceSyncFlushed(uint64_t release) override;
114 bool IsFenceSyncFlushReceived(uint64_t release) override; 114 bool IsFenceSyncFlushReceived(uint64_t release) override;
115 void SignalSyncToken(const gpu::SyncToken& sync_token, 115 void SignalSyncToken(const gpu::SyncToken& sync_token,
116 const base::Closure& callback) override; 116 const base::Closure& callback) override;
117 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 117 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
118 118
119 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); 119 void TakeFrontBuffer(const gpu::Mailbox& mailbox);
120 void ReturnFrontBuffer(const gpu::Mailbox& mailbox,
121 const gpu::SyncToken& sync_token,
122 bool is_lost);
120 123
121 void AddDeletionObserver(DeletionObserver* observer); 124 void AddDeletionObserver(DeletionObserver* observer);
122 void RemoveDeletionObserver(DeletionObserver* observer); 125 void RemoveDeletionObserver(DeletionObserver* observer);
123 126
124 bool EnsureBackbuffer(); 127 bool EnsureBackbuffer();
125 128
126 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); 129 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback);
127 130
128 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); 131 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
129 using SwapBuffersCompletionCallback = base::Callback<void( 132 using SwapBuffersCompletionCallback = base::Callback<void(
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 273
271 base::WeakPtr<CommandBufferProxyImpl> weak_this_; 274 base::WeakPtr<CommandBufferProxyImpl> weak_this_;
272 scoped_refptr<base::SequencedTaskRunner> callback_thread_; 275 scoped_refptr<base::SequencedTaskRunner> callback_thread_;
273 276
274 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 277 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
275 }; 278 };
276 279
277 } // namespace gpu 280 } // namespace gpu
278 281
279 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 282 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_texture_mailbox_unittest.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698