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

Unified Diff: mojo/services/gles2/command_buffer_impl.cc

Issue 502573006: Remove implicit conversions from scoped_refptr to T* in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: mojo/services/gles2/command_buffer_impl.cc
diff --git a/mojo/services/gles2/command_buffer_impl.cc b/mojo/services/gles2/command_buffer_impl.cc
index 1c25887260f01621fe2a24426ac80171dea30a75..d821c2882571ed65da9f199624512bb3359f45cb 100644
--- a/mojo/services/gles2/command_buffer_impl.cc
+++ b/mojo/services/gles2/command_buffer_impl.cc
@@ -91,7 +91,7 @@ bool CommandBufferImpl::DoInitialize(
// TODO(piman): virtual contexts, gpu preference.
context_ = gfx::GLContext::CreateGLContext(
- share_group_, surface_.get(), gfx::PreferIntegratedGpu);
+ share_group_.get(), surface_.get(), gfx::PreferIntegratedGpu);
if (!context_.get())
return false;
@@ -101,7 +101,7 @@ bool CommandBufferImpl::DoInitialize(
// TODO(piman): ShaderTranslatorCache is currently per-ContextGroup but
// only needs to be per-thread.
scoped_refptr<gpu::gles2::ContextGroup> context_group =
- new gpu::gles2::ContextGroup(mailbox_manager_,
+ new gpu::gles2::ContextGroup(mailbox_manager_.get(),
new MemoryTrackerStub,
new gpu::gles2::ShaderTranslatorCache,
NULL,

Powered by Google App Engine
This is Rietveld 408576698