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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 1916923004: Request context sharing via content::ContextProviderCommandBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sharegroup: . Created 4 years, 8 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 | « gpu/command_buffer/client/gles2_implementation.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index f11ea71fe04f03dbfe67682b0f241c9255a7aa57..4b8a498fe6d45f6e121e92eff079f5de4d0ee82f 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -259,7 +259,7 @@ void GLManager::InitializeWithCommandLine(
}
gles2::ContextGroup* context_group = NULL;
- gles2::ShareGroup* client_share_group = NULL;
+ scoped_refptr<gles2::ShareGroup> client_share_group;
if (options.share_group_manager) {
context_group = options.share_group_manager->decoder_->GetContextGroup();
client_share_group =
@@ -373,14 +373,11 @@ void GLManager::InitializeWithCommandLine(
// Create the object exposing the OpenGL API.
const bool support_client_side_arrays = true;
- gles2_implementation_.reset(
- new gles2::GLES2Implementation(gles2_helper_.get(),
- client_share_group,
- transfer_buffer_.get(),
- options.bind_generates_resource,
- options.lose_context_when_out_of_memory,
- support_client_side_arrays,
- this));
+ gles2_implementation_.reset(new gles2::GLES2Implementation(
+ gles2_helper_.get(), std::move(client_share_group),
+ transfer_buffer_.get(), options.bind_generates_resource,
+ options.lose_context_when_out_of_memory, support_client_side_arrays,
+ this));
ASSERT_TRUE(gles2_implementation_->Initialize(
kStartTransferBufferSize, kMinTransferBufferSize, kMaxTransferBufferSize,
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698