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

Unified Diff: components/mus/gles2/command_buffer_local.h

Issue 1854953002: Plumb GpuSwapBuffers completion from Mus GPU thread to WS thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nits Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: components/mus/gles2/command_buffer_local.h
diff --git a/components/mus/gles2/command_buffer_local.h b/components/mus/gles2/command_buffer_local.h
index bfc9e7745277a0368f8f2cdd29b11ba1530951f4..6c5cef51b023191d6b240a73d2b9a0292f4634d2 100644
--- a/components/mus/gles2/command_buffer_local.h
+++ b/components/mus/gles2/command_buffer_local.h
@@ -99,11 +99,12 @@ class CommandBufferLocal : public gpu::CommandBuffer,
const base::Closure& callback) override;
bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
- // CommandBufferDriver::Client implementation:
+ private:
+ // CommandBufferDriver::Client implementation. All called on GPU thread.
void DidLoseContext(uint32_t reason) override;
void UpdateVSyncParameters(int64_t timebase, int64_t interval) override;
+ void OnGpuCompletedSwapBuffers(gfx::SwapResult result) override;
- private:
~CommandBufferLocal() override;
gpu::CommandBufferSharedState* shared_state() const { return shared_state_; }
@@ -134,6 +135,7 @@ class CommandBufferLocal : public gpu::CommandBuffer,
// Helper functions are called in the client thread.
void DidLoseContextOnClientThread(uint32_t reason);
void UpdateVSyncParametersOnClientThread(int64_t timebase, int64_t interval);
+ void OnGpuCompletedSwapBuffersOnClientThread(gfx::SwapResult result);
gfx::AcceleratedWidget widget_;
scoped_refptr<GpuState> gpu_state_;

Powered by Google App Engine
This is Rietveld 408576698