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

Unified Diff: components/mus/surfaces/surfaces_context_provider.h

Issue 1976703003: Impl mus::mojom::GpuService to enable using Chrome IPC version gpu CmdBuf in mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « components/mus/surfaces/BUILD.gn ('k') | components/mus/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/surfaces/surfaces_context_provider.h
diff --git a/components/mus/surfaces/surfaces_context_provider.h b/components/mus/surfaces/surfaces_context_provider.h
index 2066cf6c9d3ac46ec58efeb4b8c80ebcfda14873..9a048a5cdb71915b19b899363a21df59398119f1 100644
--- a/components/mus/surfaces/surfaces_context_provider.h
+++ b/components/mus/surfaces/surfaces_context_provider.h
@@ -18,6 +18,7 @@
namespace gpu {
+class CommandBufferProxyImpl;
class TransferBuffer;
namespace gles2 {
@@ -69,6 +70,8 @@ class SurfacesContextProvider : public cc::ContextProvider,
void UpdateVSyncParameters(int64_t timebase, int64_t interval) override;
void GpuCompletedSwapBuffers(gfx::SwapResult result) override;
+ bool use_chrome_gpu_command_buffer_;
+
// From GLES2Context:
// Initialized in BindToCurrentThread.
std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;
@@ -81,6 +84,7 @@ class SurfacesContextProvider : public cc::ContextProvider,
SurfacesContextProviderDelegate* delegate_;
gfx::AcceleratedWidget widget_;
CommandBufferLocal* command_buffer_local_;
+ std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_;
« no previous file with comments | « components/mus/surfaces/BUILD.gn ('k') | components/mus/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698