Chromium Code Reviews

Unified Diff: gpu/ipc/gl_in_process_context.cc

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: gpu/ipc/gl_in_process_context.cc
diff --git a/gpu/ipc/gl_in_process_context.cc b/gpu/ipc/gl_in_process_context.cc
index c854913758b2131ee2c50ca3bb0d2a24deaf6494..f0163103954a36fc076369a9eac688123bc110a8 100644
--- a/gpu/ipc/gl_in_process_context.cc
+++ b/gpu/ipc/gl_in_process_context.cc
@@ -72,6 +72,7 @@ class GLInProcessContextImpl
const gpu::InProcessCommandBuffer::UpdateVSyncParametersCallback&
callback) override;
void SetLock(base::Lock* lock) override;
+ InProcessCommandBuffer* GetInProcessCommandBuffer() override;
private:
void Destroy();
@@ -115,6 +116,10 @@ void GLInProcessContextImpl::SetLock(base::Lock* lock) {
NOTREACHED();
}
+InProcessCommandBuffer* GLInProcessContextImpl::GetInProcessCommandBuffer() {
+ return command_buffer_.get();
+}
+
bool GLInProcessContextImpl::Initialize(
scoped_refptr<gl::GLSurface> surface,
bool is_offscreen,

Powered by Google App Engine