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

Unified Diff: components/mus/gles2/command_buffer_driver.cc

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from piman. 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 | « no previous file | gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_driver.cc
diff --git a/components/mus/gles2/command_buffer_driver.cc b/components/mus/gles2/command_buffer_driver.cc
index 7e0a06ecbd27c7fa66df8c720d1c9e3f2f031f57..b3821b9f4dec1acc7f5489955097dfc64cdf761a 100644
--- a/components/mus/gles2/command_buffer_driver.cc
+++ b/components/mus/gles2/command_buffer_driver.cc
@@ -130,13 +130,15 @@ bool CommandBufferDriver::Initialize(
const bool bind_generates_resource = attrib_helper.bind_generates_resource;
scoped_refptr<gpu::gles2::FeatureInfo> feature_info =
new gpu::gles2::FeatureInfo(gpu_state_->gpu_driver_bug_workarounds());
+ // TODO(erikchen): The ContextGroup needs a reference to the
+ // GpuMemoryBufferManager.
scoped_refptr<gpu::gles2::ContextGroup> context_group =
new gpu::gles2::ContextGroup(
gpu_state_->gpu_preferences(), gpu_state_->mailbox_manager(),
new GpuMemoryTracker,
new gpu::gles2::ShaderTranslatorCache(gpu_state_->gpu_preferences()),
new gpu::gles2::FramebufferCompletenessCache, feature_info,
- bind_generates_resource);
+ bind_generates_resource, nullptr);
command_buffer_.reset(
new gpu::CommandBufferService(context_group->transfer_buffer_manager()));
« no previous file with comments | « no previous file | gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698