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

Unified Diff: gpu/ipc/gl_in_process_context.cc

Issue 2529703002: Mus: Install SwapBuffersCompleted/VSync callbacks to DirectOutputSurface(Ozone) (Closed)
Patch Set: Grab capabilities from the InProcessCommandBuffer instead of making them up 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
« no previous file with comments | « gpu/ipc/gl_in_process_context.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7d734002a918e54936d06e94d5494c99ce6e100c..c854913758b2131ee2c50ca3bb0d2a24deaf6494 100644
--- a/gpu/ipc/gl_in_process_context.cc
+++ b/gpu/ipc/gl_in_process_context.cc
@@ -63,6 +63,7 @@ class GLInProcessContextImpl
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
// GLInProcessContext implementation:
+ gpu::Capabilities GetCapabilities() override;
gles2::GLES2Implementation* GetImplementation() override;
void SetSwapBuffersCompletionCallback(
const gpu::InProcessCommandBuffer::SwapBuffersCompletionCallback&
@@ -90,6 +91,10 @@ GLInProcessContextImpl::~GLInProcessContextImpl() {
Destroy();
}
+Capabilities GLInProcessContextImpl::GetCapabilities() {
+ return command_buffer_->GetCapabilities();
+}
+
gles2::GLES2Implementation* GLInProcessContextImpl::GetImplementation() {
return gles2_implementation_.get();
}
« no previous file with comments | « gpu/ipc/gl_in_process_context.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698