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

Unified Diff: gpu/ipc/gl_in_process_context.cc

Issue 2498053004: Add InProcessContextProvider and update InProcessCommandBuffer (Closed)
Patch Set: Created 4 years, 1 month 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: 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 16a1cb165000be73903c72fcce2a801c5d6eef90..c798a883d1a3c0b2144d86f707793df92f113ac8 100644
--- a/gpu/ipc/gl_in_process_context.cc
+++ b/gpu/ipc/gl_in_process_context.cc
@@ -64,6 +64,7 @@ class GLInProcessContextImpl
// GLInProcessContext implementation:
gles2::GLES2Implementation* GetImplementation() override;
+ InProcessCommandBuffer* GetInProcessCommandBuffer() override;
void SetLock(base::Lock* lock) override;
private:
@@ -88,6 +89,10 @@ gles2::GLES2Implementation* GLInProcessContextImpl::GetImplementation() {
return gles2_implementation_.get();
}
+InProcessCommandBuffer* GLInProcessContextImpl::GetInProcessCommandBuffer() {
+ return command_buffer_.get();
+}
+
void GLInProcessContextImpl::SetLock(base::Lock* lock) {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698